comparison include/begin_code.h @ 3965:19d708301fab SDL-1.2

Make sure __inline__ isn't defined before #defining it, since some compilers (like Sun Studio) have this as a predefined macro. Fixes Bugzilla #434.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 15 Jun 2007 07:19:05 +0000
parents f12379c41042
children e85e65aec22f
comparison
equal deleted inserted replaced
3964:3dc92ff218dd 3965:19d708301fab
121 #define __inline__ __inline 121 #define __inline__ __inline
122 #endif 122 #endif
123 #define SDL_INLINE_OKAY 123 #define SDL_INLINE_OKAY
124 #else 124 #else
125 #if !defined(__MRC__) && !defined(_SGI_SOURCE) 125 #if !defined(__MRC__) && !defined(_SGI_SOURCE)
126 #ifndef __inline__
126 #define __inline__ inline 127 #define __inline__ inline
128 #endif
127 #define SDL_INLINE_OKAY 129 #define SDL_INLINE_OKAY
128 #endif /* Not a funky compiler */ 130 #endif /* Not a funky compiler */
129 #endif /* Visual C++ */ 131 #endif /* Visual C++ */
130 #endif /* GNU C */ 132 #endif /* GNU C */
131 #endif /* SDL_INLINE_OKAY */ 133 #endif /* SDL_INLINE_OKAY */