Mercurial > sdl-ios-xcode
comparison include/begin_code.h @ 85:60c7960354e0
Added support for Visual C++ inline keyword
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Mon, 02 Jul 2001 00:10:19 +0000 |
parents | 74212992fb08 |
children | 83018110dce8 |
comparison
equal
deleted
inserted
replaced
84:c7f1b0647448 | 85:60c7960354e0 |
---|---|
67 #ifndef SDL_INLINE_OKAY | 67 #ifndef SDL_INLINE_OKAY |
68 #ifdef __GNUC__ | 68 #ifdef __GNUC__ |
69 #define SDL_INLINE_OKAY | 69 #define SDL_INLINE_OKAY |
70 #else | 70 #else |
71 /* Add any special compiler-specific cases here */ | 71 /* Add any special compiler-specific cases here */ |
72 #if !defined(_MSC_VER) && !defined(__MRC__) && !defined(_SGI_SOURCE) | 72 #if defined(_MSC_VER) |
73 #define __inline__ __inline | |
74 #define SDL_INLINE_OKAY | |
75 #else | |
76 #if !defined(__MRC__) && !defined(_SGI_SOURCE) | |
73 #define __inline__ inline | 77 #define __inline__ inline |
74 #define SDL_INLINE_OKAY | 78 #define SDL_INLINE_OKAY |
75 #endif /* Not a funky compiler */ | 79 #endif /* Not a funky compiler */ |
80 #endif /* Visual C++ */ | |
76 #endif /* GNU C */ | 81 #endif /* GNU C */ |
77 #endif /* SDL_INLINE_OKAY */ | 82 #endif /* SDL_INLINE_OKAY */ |
78 | 83 |
79 /* If inlining isn't supported, remove "__inline__", turning static | 84 /* If inlining isn't supported, remove "__inline__", turning static |
80 inlined functions into static functions (resulting in code bloat | 85 inlined functions into static functions (resulting in code bloat |