diff options
Diffstat (limited to 'innobase/include')
-rw-r--r-- | innobase/include/univ.i | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/innobase/include/univ.i b/innobase/include/univ.i index 9fc9f85f633..a4345babbbe 100644 --- a/innobase/include/univ.i +++ b/innobase/include/univ.i @@ -104,8 +104,12 @@ memory is read outside the allocated blocks. */ #define UNIV_INLINE __inline #else /* config.h contains the right def for 'inline' for the current compiler */ +#if (__GNUC__ == 2) #define UNIV_INLINE extern inline - +#else +/* extern inline doesn't work with gcc 3.0.2 */ +#define UNIV_INLINE static inline +#endif #endif #else |