Fixed a build error in SDL_platform.h when using Code Blocks and MinGW
authorDavid Ludwig <dludwig@pobox.com>
Tue, 18 Mar 2014 12:08:49 -0400
changeset 8630e217ed463f25
parent 8629 4c01875a4620
child 8631 2ce6d7f3cf40
Fixed a build error in SDL_platform.h when using Code Blocks and MinGW

winapifamily.h, a header file specific to Microsoft's Windows 8 SDK, wasn't
getting found, which was leading to a build error.
include/SDL_platform.h
     1.1 --- a/include/SDL_platform.h	Mon Mar 17 19:11:18 2014 -0400
     1.2 +++ b/include/SDL_platform.h	Tue Mar 18 12:08:49 2014 -0400
     1.3 @@ -114,10 +114,10 @@
     1.4  #define __SOLARIS__ 1
     1.5  #endif
     1.6  
     1.7 -#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
     1.8 +#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
     1.9  /* Try to find out if we're compiling for WinRT or non-WinRT */
    1.10  /* If _USING_V110_SDK71_ is defined it means we are using the v110_xp or v120_xp toolset. */
    1.11 -#if defined(__MINGW32__) || (defined(_MSC_VER) && (_MSC_VER >= 1700) && !_USING_V110_SDK71_)	/* _MSC_VER==1700 for MSVC 2012 */
    1.12 +#if (defined(_MSC_VER) && (_MSC_VER >= 1700) && !_USING_V110_SDK71_)	/* _MSC_VER==1700 for MSVC 2012 */
    1.13  #include <winapifamily.h>
    1.14  #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
    1.15  #undef __WINDOWS__