diff options
-rw-r--r-- | exec-all.h | 8 | ||||
-rw-r--r-- | vl.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/exec-all.h b/exec-all.h index f58aea5345..3151bb5913 100644 --- a/exec-all.h +++ b/exec-all.h @@ -37,6 +37,14 @@ #define unlikely(x) __builtin_expect(!!(x), 0) #endif +#ifndef always_inline +#if __GNUC__ < 3 +#define always_inline inline +#else +#define always_inline __attribute__ (( always_inline )) inline +#endif +#endif + #ifdef __i386__ #define REGPARM(n) __attribute((regparm(n))) #else @@ -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); |