Added support for Visual C++ inline keyword
authorSam Lantinga <slouken@lokigames.com>
Mon, 02 Jul 2001 00:10:19 +0000
changeset 8560c7960354e0
parent 84 c7f1b0647448
child 86 13e4c612098d
Added support for Visual C++ inline keyword
include/begin_code.h
     1.1 --- a/include/begin_code.h	Mon Jul 02 00:10:05 2001 +0000
     1.2 +++ b/include/begin_code.h	Mon Jul 02 00:10:19 2001 +0000
     1.3 @@ -69,10 +69,15 @@
     1.4  #define SDL_INLINE_OKAY
     1.5  #else
     1.6  /* Add any special compiler-specific cases here */
     1.7 -#if !defined(_MSC_VER) && !defined(__MRC__) && !defined(_SGI_SOURCE)
     1.8 +#if defined(_MSC_VER)
     1.9 +#define __inline__	__inline
    1.10 +#define SDL_INLINE_OKAY
    1.11 +#else
    1.12 +#if !defined(__MRC__) && !defined(_SGI_SOURCE)
    1.13  #define __inline__ inline
    1.14  #define SDL_INLINE_OKAY
    1.15  #endif /* Not a funky compiler */
    1.16 +#endif /* Visual C++ */
    1.17  #endif /* GNU C */
    1.18  #endif /* SDL_INLINE_OKAY */
    1.19