SDL 2.0.0 defined __inline__ and some code relies on it now.
authorSam Lantinga <slouken@libsdl.org>
Tue, 22 Oct 2013 21:53:58 -0700
changeset 7881a74e5be22566
parent 7880 b8d30d14d535
child 7882 b81e4cc2932e
SDL 2.0.0 defined __inline__ and some code relies on it now.
include/begin_code.h
     1.1 --- a/include/begin_code.h	Tue Oct 22 21:53:42 2013 -0700
     1.2 +++ b/include/begin_code.h	Tue Oct 22 21:53:58 2013 -0700
     1.3 @@ -107,8 +107,14 @@
     1.4        defined(__WATCOMC__) || defined(__LCC__) || \
     1.5        defined(__DECC)
     1.6  #define SDL_INLINE __inline
     1.7 +#ifndef __inline__
     1.8 +#define __inline__ __inline
     1.9 +#endif
    1.10  #else
    1.11  #define SDL_INLINE inline
    1.12 +#ifndef __inline__
    1.13 +#define __inline__ inline
    1.14 +#endif
    1.15  #endif
    1.16  #endif /* SDL_INLINE not defined */
    1.17