diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-07-08 07:00:50 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-07-28 09:23:20 +0000 |
commit | b595c14a7bd3d4d47a44d064d7efbaaf45b4321b (patch) | |
tree | 674358b433a22c611fcb37fb4c52438b9bdc3e97 /osdep.h | |
parent | 0ed8b6f67f26acc2e88dfc6be4954e63f943bd28 (diff) |
Avoid redefining inline
System headers (e.g. gutils.h) may define 'inline', #undefine it
before #defining.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'osdep.h')
-rw-r--r-- | osdep.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -70,10 +70,12 @@ typedef signed int int_fast16_t; #ifndef always_inline #if !((__GNUC__ < 3) || defined(__APPLE__)) #ifdef __OPTIMIZE__ +#undef inline #define inline __attribute__ (( always_inline )) __inline__ #endif #endif #else +#undef inline #define inline always_inline #endif |