aboutsummaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-30 14:44:52 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-30 14:44:52 +0000
commit8a84de23b8f8fc63338dfcc58f572e33c428c1b7 (patch)
tree866b3852fd785d45234cc3b01962d723550f4691 /vl.h
parenta5b85f7959378bc038803e51918e0f64461eb9b6 (diff)
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 'vl.h')
-rw-r--r--vl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.h b/vl.h
index 4e0628332b..0add259de8 100644
--- a/vl.h
+++ b/vl.h
@@ -110,7 +110,7 @@ static inline char *realpath(const char *path, char *resolved_path)
#endif
#ifndef always_inline
-#if __GNUC__ < 3
+#if (__GNUC__ < 3) || defined(__APPLE__)
#define always_inline inline
#else
#define always_inline __attribute__ (( always_inline )) inline