summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-16 09:06:54 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-16 09:06:54 +0000
commit636aa20056f2b242c296c0c0f55bbd4d21332966 (patch)
tree92c2decbbd8379fd6e7901fa3728eed395a5137d /osdep.h
parentuser: compile host-utils.c only once (diff)
downloadqemu-kvm-636aa20056f2b242c296c0c0f55bbd4d21332966.tar.gz
qemu-kvm-636aa20056f2b242c296c0c0f55bbd4d21332966.tar.bz2
qemu-kvm-636aa20056f2b242c296c0c0f55bbd4d21332966.zip
Replace always_inline with inline
We define inline as always_inline. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'osdep.h')
-rw-r--r--osdep.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/osdep.h b/osdep.h
index ffbf221d7..2517b1a36 100644
--- a/osdep.h
+++ b/osdep.h
@@ -48,12 +48,9 @@
#endif
#ifndef always_inline
-#if (__GNUC__ < 3) || defined(__APPLE__)
-#define always_inline inline
-#else
-#define always_inline __attribute__ (( always_inline )) __inline__
+#if !((__GNUC__ < 3) || defined(__APPLE__))
#ifdef __OPTIMIZE__
-#define inline always_inline
+#define inline __attribute__ (( always_inline )) __inline__
#endif
#endif
#else