Fixed MacOS X and Solaris detection
authorSam Lantinga <slouken@libsdl.org>
Thu, 13 Apr 2006 14:59:34 +0000
changeset 1631510b009a864c
parent 1630 eba962f9d603
child 1632 89e25c25213c
Fixed MacOS X and Solaris detection
include/SDL_platform.h
     1.1 --- a/include/SDL_platform.h	Thu Apr 13 14:27:58 2006 +0000
     1.2 +++ b/include/SDL_platform.h	Thu Apr 13 14:59:34 2006 +0000
     1.3 @@ -65,7 +65,7 @@
     1.4  #undef __MACOS__
     1.5  #define __MACOS__	1
     1.6  #endif
     1.7 -#if defined(__GNUC__) && (defined(__APPLE_CC__) || defined(__APPLE_CPP__))
     1.8 +#if defined(__APPLE__)
     1.9  #undef __MACOSX__
    1.10  #define __MACOSX__	1
    1.11  #endif
    1.12 @@ -93,7 +93,7 @@
    1.13  #undef __RISCOS__
    1.14  #define __RISCOS__	1
    1.15  #endif
    1.16 -#if defined(solaris) || defined(__solaris) || defined(__solaris__)
    1.17 +#if defined(__SVR4)
    1.18  #undef __SOLARIS__
    1.19  #define __SOLARIS__	1
    1.20  #endif