summaryrefslogtreecommitdiff
path: root/osdep.h
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
commit986b4f74b8165271b7eaa99e0ee0dfe0c745a7a2 (patch)
treebe1f6dc93294f307d2423f5c77f2bcd0663833a8 /osdep.h
parent641e5698554145fde46a4fb9fe10b5047817e738 (diff)
downloadqemu-986b4f74b8165271b7eaa99e0ee0dfe0c745a7a2.tar.gz
qemu-986b4f74b8165271b7eaa99e0ee0dfe0c745a7a2.tar.bz2
qemu-986b4f74b8165271b7eaa99e0ee0dfe0c745a7a2.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 87f024b127..9cdfb2c1ce 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