Skip to content

Commit

Permalink
SDL 2.0.0 defined __inline__ and some code relies on it now.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 23, 2013
1 parent fa73a3c commit 30ce2bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/begin_code.h
Expand Up @@ -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 */

Expand Down

0 comments on commit 30ce2bc

Please sign in to comment.