From 274b054ac3c98f5097d702e7cae9bd898fd0b15a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 22 Oct 2013 21:53:58 -0700 Subject: [PATCH] SDL 2.0.0 defined __inline__ and some code relies on it now. --HG-- extra : rebase_source : b16922234216c3e66aac75ff77bcb8b041eeb729 --- include/begin_code.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/begin_code.h b/include/begin_code.h index 7adddedf2..968a540a4 100644 --- a/include/begin_code.h +++ b/include/begin_code.h @@ -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 */