aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-19 01:31:52 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-19 01:31:52 +0000
commit3dec6ecd31f141ea21c8490fce234e6f6edcee6e (patch)
treebe1f6dc93294f307d2423f5c77f2bcd0663833a8 /osdep.h
parentAdd 40-bit DMA support to LSI scsi emulation (Ryan Harper) (diff)
downloadqemu-kvm-3dec6ecd31f141ea21c8490fce234e6f6edcee6e.tar.gz
qemu-kvm-3dec6ecd31f141ea21c8490fce234e6f6edcee6e.tar.bz2
qemu-kvm-3dec6ecd31f141ea21c8490fce234e6f6edcee6e.zip
Only force inlining when optimizing.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5751 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'osdep.h')
-rw-r--r--osdep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep.h b/osdep.h
index 87f024b12..9cdfb2c1c 100644
--- a/osdep.h
+++ b/osdep.h
@@ -48,8 +48,10 @@
#define always_inline inline
#else
#define always_inline __attribute__ (( always_inline )) __inline__
+#ifdef __OPTIMIZE__
#define inline always_inline
#endif
+#endif
#else
#define inline always_inline
#endif