SDL 2.0.0 defined __inline__ and some code relies on it now.

This commit is contained in:
Sam Lantinga 2013-10-22 21:53:58 -07:00
parent fa73a3c8f6
commit 30ce2bc723
1 changed files with 6 additions and 0 deletions

View File

@ -107,8 +107,14 @@
defined(__WATCOMC__) || defined(__LCC__) || \
defined(__DECC)
#define SDL_INLINE __inline
#ifndef __inline__
#define __inline__ __inline
#endif
#else
#define SDL_INLINE inline
#ifndef __inline__
#define __inline__ inline
#endif
#endif
#endif /* SDL_INLINE not defined */