From a6fdf80a8b3b8ea974d7faca2c0d34033e8be681 Mon Sep 17 00:00:00 2001 From: Gregor Anich Date: Sun, 7 Nov 2004 22:20:50 +0000 Subject: [PATCH] Fix FORCE_INLINE for GNUC. svn path=/trunk/; revision=11586 --- reactos/lib/mesa32/src/drivers/windows/gdi/wmesa.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reactos/lib/mesa32/src/drivers/windows/gdi/wmesa.c b/reactos/lib/mesa32/src/drivers/windows/gdi/wmesa.c index e30fc422a0e..338a57714c6 100644 --- a/reactos/lib/mesa32/src/drivers/windows/gdi/wmesa.c +++ b/reactos/lib/mesa32/src/drivers/windows/gdi/wmesa.c @@ -18,7 +18,7 @@ * Updated for Mesa 4.0 by Karl Schultz (kschultz@sourceforge.net) */ -#ifdef NDEBUG +#if defined(NDEBUG) && defined(_MSC_VER) #pragma auto_inline(on) #pragma inline_depth(255) #pragma inline_recursion(on) @@ -112,9 +112,8 @@ WMesaContext WC = NULL; #if defined(_MSC_VER) && _MSC_VER >= 1200 #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)) -#error FORCEINLINE OK!!! #else #define FORCEINLINE __inline #endif