From 30ce2bc72368ec0bb051d067cde14f49674b9fc0 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. --- 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 */