include/begin_code.h
changeset 1402 d910939febfa
parent 1190 173c063d4f55
child 1573 2422ca15ba42
     1.1 --- a/include/begin_code.h	Tue Feb 21 08:34:45 2006 +0000
     1.2 +++ b/include/begin_code.h	Tue Feb 21 08:46:50 2006 +0000
     1.3 @@ -31,11 +31,6 @@
     1.4  #endif
     1.5  #define _begin_code_h
     1.6  
     1.7 -/* Make sure the correct platform symbols are defined */
     1.8 -#if !defined(WIN32) && defined(_WIN32)
     1.9 -#define WIN32
    1.10 -#endif /* Windows */
    1.11 -
    1.12  /* Some compilers use a special export keyword */
    1.13  #ifndef DECLSPEC
    1.14  # ifdef __BEOS__
    1.15 @@ -45,7 +40,7 @@
    1.16  #   define DECLSPEC	__declspec(export)
    1.17  #  endif
    1.18  # else
    1.19 -# ifdef WIN32
    1.20 +# ifdef __WIN32__
    1.21  #  ifdef __BORLANDC__
    1.22  #   ifdef BUILD_SDL
    1.23  #    define DECLSPEC 
    1.24 @@ -75,7 +70,7 @@
    1.25  
    1.26  /* By default SDL uses the C calling convention */
    1.27  #ifndef SDLCALL
    1.28 -#if defined(WIN32) && !defined(__GNUC__)
    1.29 +#if defined(__WIN32__) && !defined(__GNUC__)
    1.30  #define SDLCALL __cdecl
    1.31  #else
    1.32  #ifdef __OS2__
    1.33 @@ -107,7 +102,7 @@
    1.34  #pragma nopackwarning
    1.35  #endif
    1.36  #pragma pack(push,4)
    1.37 -#elif (defined(__MWERKS__) && defined(macintosh))
    1.38 +#elif (defined(__MWERKS__) && defined(__MACOS__))
    1.39  #pragma options align=mac68k4byte
    1.40  #pragma enumsalwaysint on
    1.41  #endif /* Compiler needs structure packing set */