Fix FORCE_INLINE for GNUC.

svn path=/trunk/; revision=11586
This commit is contained in:
Gregor Anich 2004-11-07 22:20:50 +00:00
parent 609b0c5307
commit a6fdf80a8b

View file

@ -18,7 +18,7 @@
* Updated for Mesa 4.0 by Karl Schultz (kschultz@sourceforge.net) * Updated for Mesa 4.0 by Karl Schultz (kschultz@sourceforge.net)
*/ */
#ifdef NDEBUG #if defined(NDEBUG) && defined(_MSC_VER)
#pragma auto_inline(on) #pragma auto_inline(on)
#pragma inline_depth(255) #pragma inline_depth(255)
#pragma inline_recursion(on) #pragma inline_recursion(on)
@ -112,9 +112,8 @@ WMesaContext WC = NULL;
#if defined(_MSC_VER) && _MSC_VER >= 1200 #if defined(_MSC_VER) && _MSC_VER >= 1200
#define FORCEINLINE __forceinline #define FORCEINLINE __forceinline
#elif defined(__GNUC__) && (__GCC_MAJOR__ > 3 || (__GCC_MAJOR__ == 3 && __GCC_MINOR__ >= 1)) #elif defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
#define FORCEINLINE __attribute__((always_inline)) #define FORCEINLINE __attribute__((always_inline))
#error FORCEINLINE OK!!!
#else #else
#define FORCEINLINE __inline #define FORCEINLINE __inline
#endif #endif