Make sure __inline__ isn't defined before #defining it, since some compilers SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Fri, 15 Jun 2007 07:19:05 +0000
branchSDL-1.2
changeset 396519d708301fab
parent 3964 3dc92ff218dd
child 3966 c0de2aac0a8c
Make sure __inline__ isn't defined before #defining it, since some compilers
(like Sun Studio) have this as a predefined macro.

Fixes Bugzilla #434.
include/begin_code.h
     1.1 --- a/include/begin_code.h	Fri Jun 15 06:57:31 2007 +0000
     1.2 +++ b/include/begin_code.h	Fri Jun 15 07:19:05 2007 +0000
     1.3 @@ -123,7 +123,9 @@
     1.4  #define SDL_INLINE_OKAY
     1.5  #else
     1.6  #if !defined(__MRC__) && !defined(_SGI_SOURCE)
     1.7 +#ifndef __inline__
     1.8  #define __inline__ inline
     1.9 +#endif
    1.10  #define SDL_INLINE_OKAY
    1.11  #endif /* Not a funky compiler */
    1.12  #endif /* Visual C++ */