From cedbb3118c25b74f166b064ff7d1d04601e0ee73 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 8 Sep 2017 15:08:50 -0700 Subject: [PATCH] Fixed building with the first version of Visual Studio 2017, which doesn't have __has_include() (Thanks Simon!) --- include/SDL_platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL_platform.h b/include/SDL_platform.h index 75224a0d6..9dde385fa 100644 --- a/include/SDL_platform.h +++ b/include/SDL_platform.h @@ -120,7 +120,7 @@ #if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) /* Try to find out if we're compiling for WinRT or non-WinRT */ -#if defined(_MSC_VER) && _MSC_VER >= 1910 /* _MSC_VER == 1910 for Visual Studio 2017 */ +#if defined(_MSC_VER) && defined(__has_include) #define HAVE_WINAPIFAMILY_H __has_include() /* If _USING_V110_SDK71_ is defined it means we are using the Windows XP toolset. */ #elif defined(_MSC_VER) && (_MSC_VER >= 1700 && !_USING_V110_SDK71_) /* _MSC_VER == 1700 for Visual Studio 2012 */