diff --git a/include/SDL_platform.h b/include/SDL_platform.h index f9024d31b6..9bd753336e 100644 --- a/include/SDL_platform.h +++ b/include/SDL_platform.h @@ -73,7 +73,13 @@ #if defined(__APPLE__) /* lets us know what version of Mac OS X we're compiling on */ #include +#ifndef __has_extension /* Older compilers don't support this */ +#define __has_extension(x) 0 #include +#undef __has_extension +#else +#include +#endif /* Fix building with older SDKs that don't define these See this for more information: