mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 05:22:57 +00:00
Fix FORCE_INLINE for GNUC.
svn path=/trunk/; revision=11586
This commit is contained in:
parent
609b0c5307
commit
a6fdf80a8b
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue