include/SDL_platform.h
changeset 8535 e8ee0708ef5c
parent 8478 337b5dc0797b
parent 7856 cb37776926ad
child 8543 b9dd3cf38585
equal deleted inserted replaced
8534:50177f518fdb 8535:e8ee0708ef5c
    64 #undef __LINUX__
    64 #undef __LINUX__
    65 #define __LINUX__   1
    65 #define __LINUX__   1
    66 #endif
    66 #endif
    67 #if defined(ANDROID)
    67 #if defined(ANDROID)
    68 #undef __ANDROID__
    68 #undef __ANDROID__
    69 #undef __LINUX__ /*do we need to do this?*/
    69 #undef __LINUX__ /* do we need to do this? */
    70 #define __ANDROID__ 1
    70 #define __ANDROID__ 1
    71 #endif
    71 #endif
    72 
    72 
    73 #if defined(__APPLE__)
    73 #if defined(__APPLE__)
    74 /* lets us know what version of Mac OS X we're compiling on */
    74 /* lets us know what version of Mac OS X we're compiling on */
   120 #undef __SOLARIS__
   120 #undef __SOLARIS__
   121 #define __SOLARIS__ 1
   121 #define __SOLARIS__ 1
   122 #endif
   122 #endif
   123 
   123 
   124 #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 */
   125 /* Try to find out if we're compiling for WinRT or non-WinRT */
   126 #if defined(_MSC_VER) && (_MSC_VER >= 1700)	/* _MSC_VER==1700 for MSVC 2012 */
   126 #if defined(_MSC_VER) && (_MSC_VER >= 1700)	/* _MSC_VER==1700 for MSVC 2012 */
   127 #include <winapifamily.h>
   127 #include <winapifamily.h>
   128 #endif
   128 #endif /* _MSC_VER >= 1700 */
   129 /* Default to classic, Win32 / Desktop compilation either if:
   129 /* Default to classic, Win32/Win64/Desktop compilation either if:
   130      1. the version of Windows is explicity set to a 'Desktop' (non-Metro) app
   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
   131      2. the version of Windows cannot be determined via winapifamily.h
   132    If neither is true, see if we're compiling for WinRT.
   132    If neither is true, then see if we're compiling for WinRT.
   133  */
   133  */
   134 #if ! defined(WINAPI_FAMILY_PARTITION) || WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
   134 #if ! defined(WINAPI_FAMILY_PARTITION) || WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
   135 #undef __WIN32__
   135 #undef __WINDOWS__
   136 #define __WIN32__   1
   136 #define __WINDOWS__   1
   137 /* See if we're compiling for WinRT: */
   137 /* See if we're compiling for WinRT: */
   138 #elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
   138 #elif WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
   139 #undef __WINRT__
   139 #undef __WINRT__
   140 #define __WINRT__ 1
   140 #define __WINRT__ 1
   141 #endif /* ! defined(WINAPI_FAMILY_PARTITION) */
   141 #endif /* ! defined(WINAPI_FAMILY_PARTITION) */
   142 #endif /* defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) */
   142 #endif /* defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) */
   143 
   143 
       
   144 #if defined(__WINDOWS__)
       
   145 #undef __WIN32__
       
   146 #define __WIN32__ 1
       
   147 #endif
   144 #if defined(__PSP__)
   148 #if defined(__PSP__)
   145 #undef __PSP__
   149 #undef __PSP__
   146 #define __PSP__ 1
   150 #define __PSP__ 1
   147 #endif
   151 #endif
   148 
   152