stdafx.h
changeset 770 89dab23f04ca
parent 569 2e86ae517874
child 781 9717ff353c17
equal deleted inserted replaced
769:debb994c7a5b 770:89dab23f04ca
    29 #endif
    29 #endif
    30 
    30 
    31 #ifdef SUNOS
    31 #ifdef SUNOS
    32 #include <alloca.h>
    32 #include <alloca.h>
    33 #endif
    33 #endif
       
    34 
       
    35 #ifdef __MORPHOS__
       
    36 // morphos defines certain amiga defines per default, we undefine them 
       
    37 // here to make the rest of source less messy and more clear what is
       
    38 // required for morphos and what for amigaos
       
    39 #	ifdef amigaos
       
    40 #		undef amigaos
       
    41 #	endif
       
    42 #	ifdef __amigaos__
       
    43 #		undef __amigaos__
       
    44 #	endif
       
    45 #	ifdef __AMIGA__
       
    46 #		undef __AMIGA__
       
    47 #	endif
       
    48 #	ifdef AMIGA
       
    49 #		undef AMIGA
       
    50 #	endif
       
    51 #	ifdef amiga
       
    52 #   	undef amiga
       
    53 #	endif
       
    54 #endif /* __MORPHOS__ */
    34 
    55 
    35 #define BSWAP32(x) ((((x) >> 24) & 0xFF) | (((x) >> 8) & 0xFF00) | (((x) << 8) & 0xFF0000) | (((x) << 24) & 0xFF000000))
    56 #define BSWAP32(x) ((((x) >> 24) & 0xFF) | (((x) >> 8) & 0xFF00) | (((x) << 8) & 0xFF0000) | (((x) << 24) & 0xFF000000))
    36 #define BSWAP16(x) ((x) >> 8 | (x) << 8)
    57 #define BSWAP16(x) ((x) >> 8 | (x) << 8)
    37 
    58 
    38 // by default we use [] var arrays
    59 // by default we use [] var arrays
   180 #define DrawString OTTD_DrawString
   201 #define DrawString OTTD_DrawString
   181 #define Random OTTD_Random
   202 #define Random OTTD_Random
   182 #define CloseConnection OTTD_CloseConnection
   203 #define CloseConnection OTTD_CloseConnection
   183 #endif
   204 #endif
   184 
   205 
   185 #if !(defined(__AMIGA__) && !defined(__MORPHOS__))
   206 #ifdef __AMIGA__
   186 // it seems AmigaOS already have a Point declared
   207 // it seems AmigaOS already have a Point declared
   187 #define Point OTTD_AMIGA_POINT
   208 #define Point OTTD_AMIGA_POINT
   188 #endif
   209 #endif
   189 
   210 
   190 #endif // !defined(_STDAFX_H)
   211 #endif // !defined(_STDAFX_H)