aboutsummaryrefslogtreecommitdiff
path: root/vl.h
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-29 12:17:25 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-29 12:17:25 +0000
commit29f640e2cfe4d7da114482fd8de257a27274288d (patch)
treef1d2c2fb899f6c76a84ff3d8606e820c0103bf69 /vl.h
parentf1548daae3c790b9740d41eaa7524572db612970 (diff)
always_inline gcc directive can be useful.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3259 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r--vl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vl.h b/vl.h
index b2dde5dd01..378ed273c3 100644
--- a/vl.h
+++ b/vl.h
@@ -109,6 +109,14 @@ static inline char *realpath(const char *path, char *resolved_path)
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
#endif
+#ifndef always_inline
+#if __GNUC__ < 3
+#define always_inline inline
+#else
+#define always_inline __attribute__ (( always_inline )) inline
+#endif
+#endif
+
/* cutils.c */
void pstrcpy(char *buf, int buf_size, const char *str);
char *pstrcat(char *buf, int buf_size, const char *s);