summaryrefslogtreecommitdiffstats
path: root/exec-all.h
diff options
context:
space:
mode:
authorj_mayer2007-09-30 16:44:52 +0200
committerj_mayer2007-09-30 16:44:52 +0200
commit8a84de23b8f8fc63338dfcc58f572e33c428c1b7 (patch)
tree866b3852fd785d45234cc3b01962d723550f4691 /exec-all.h
parentFix mmap to handle differing host/target page sizes, by Edgar E. Iglesias. (diff)
downloadqemu-8a84de23b8f8fc63338dfcc58f572e33c428c1b7.tar.gz
qemu-8a84de23b8f8fc63338dfcc58f572e33c428c1b7.tar.xz
qemu-8a84de23b8f8fc63338dfcc58f572e33c428c1b7.zip
Fix compilation on Darwin platform, avoiding the use of gcc function attributes
(problem reported by Andreas Farber). : ---------------------------------------------------------------------- git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3292 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec-all.h')
-rw-r--r--exec-all.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec-all.h b/exec-all.h
index 3151bb5913..dc5a10d972 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -38,7 +38,7 @@
#endif
#ifndef always_inline
-#if __GNUC__ < 3
+#if (__GNUC__ < 3) || defined(__APPLE__)
#define always_inline inline
#else
#define always_inline __attribute__ (( always_inline )) inline