include/SDL_platform.h
changeset 8352 deef25f5fce1
parent 8316 88f011703f39
child 8358 3511af7671fd
equal deleted inserted replaced
8351:021d5b7dae39 8352:deef25f5fce1
   112 #endif
   112 #endif
   113 #if defined(__SVR4)
   113 #if defined(__SVR4)
   114 #undef __SOLARIS__
   114 #undef __SOLARIS__
   115 #define __SOLARIS__	1
   115 #define __SOLARIS__	1
   116 #endif
   116 #endif
       
   117 
   117 #if defined(WIN32) || defined(_WIN32)
   118 #if defined(WIN32) || defined(_WIN32)
   118 #if ! defined(__WINRT__)
   119 /* Try to find out what version of Windows we are compiling for */
       
   120 #if defined(_MSC_VER) && (_MSC_VER >= 1700)	/* _MSC_VER==1700 for MSVC 2012 */
       
   121 #include <winapifamily.h>
       
   122 #endif
       
   123 /* Default to classic, Win32 / Desktop compilation if the version of Windows
       
   124    cannot be determined via winapifamily.h. */
       
   125 #if ! defined(WINAPI_FAMILY_PARTITION)
       
   126 #undef __WIN32__
       
   127 #define __WIN32__ 1
       
   128 #else
       
   129 /* Include Win32 / Desktop App APIs in SDL, if available: */
       
   130 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
       
   131 #undef __WIN32__
       
   132 #define __WIN32__ 1
       
   133 #endif
       
   134 /* Include WinRT / Windows Store APIs in SDL, if available: */
       
   135 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
       
   136 #undef __WINRT__
       
   137 #define __WINRT__ 1
       
   138 #endif
       
   139 #endif
       
   140 #endif
       
   141 
       
   142 /*
       
   143 #if ! defined(WINAPI_FAMILY_PARTITION) || ! WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
   119 #undef __WIN32__
   144 #undef __WIN32__
   120 #define __WIN32__	1
   145 #define __WIN32__	1
       
   146 #error win32_defined
   121 #endif
   147 #endif
   122 #endif
   148 #endif
       
   149 #if defined(WINAPI_FAMILY_PARTITION) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
       
   150 #undef __WINRT__
       
   151 #define __WINRT__	1
       
   152 #error winrt_defined
       
   153 #endif
       
   154 */
   123 
   155 
   124 #if defined(__NDS__)
   156 #if defined(__NDS__)
   125 #undef __NINTENDODS__
   157 #undef __NINTENDODS__
   126 #define __NINTENDODS__	1
   158 #define __NINTENDODS__	1
   127 #endif
   159 #endif