include/SDL_platform.h
changeset 8478 337b5dc0797b
parent 8477 ad08f0d710f3
child 8535 e8ee0708ef5c
equal deleted inserted replaced
8477:ad08f0d710f3 8478:337b5dc0797b
   118 #endif
   118 #endif
   119 #if defined(__SVR4)
   119 #if defined(__SVR4)
   120 #undef __SOLARIS__
   120 #undef __SOLARIS__
   121 #define __SOLARIS__ 1
   121 #define __SOLARIS__ 1
   122 #endif
   122 #endif
       
   123 
   123 #if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
   124 #if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
       
   125 /* Try to find out what version of Windows we are compiling for */
       
   126 #if defined(_MSC_VER) && (_MSC_VER >= 1700)	/* _MSC_VER==1700 for MSVC 2012 */
       
   127 #include <winapifamily.h>
       
   128 #endif
       
   129 /* Default to classic, Win32 / Desktop compilation either if:
       
   130      1. the version of Windows is explicity set to a 'Desktop' (non-Metro) app
       
   131      2. the version of Windows cannot be determined via winapifamily.h
       
   132    If neither is true, see if we're compiling for WinRT.
       
   133  */
       
   134 #if ! defined(WINAPI_FAMILY_PARTITION) || WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
   124 #undef __WIN32__
   135 #undef __WIN32__
   125 #define __WIN32__   1
   136 #define __WIN32__   1
   126 #endif
   137 /* See if we're compiling for WinRT: */
       
   138 #elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
       
   139 #undef __WINRT__
       
   140 #define __WINRT__ 1
       
   141 #endif /* ! defined(WINAPI_FAMILY_PARTITION) */
       
   142 #endif /* defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) */
       
   143 
   127 #if defined(__PSP__)
   144 #if defined(__PSP__)
   128 #undef __PSP__
   145 #undef __PSP__
   129 #define __PSP__ 1
   146 #define __PSP__ 1
   130 #endif
   147 #endif
   131 
   148