stdafx.h
changeset 3016 c63fb93fa1a0
parent 2984 225bffc79071
child 3289 8c0707257253
equal deleted inserted replaced
3015:76371a33e6c4 3016:c63fb93fa1a0
    50 # ifdef amiga
    50 # ifdef amiga
    51 #  undef amiga
    51 #  undef amiga
    52 # endif
    52 # endif
    53 #endif /* __MORPHOS__ */
    53 #endif /* __MORPHOS__ */
    54 
    54 
       
    55 #ifdef __APPLE__
       
    56 #include "os/macosx/osx_stdafx.h"
       
    57 // make endian swapping use Apple's macros to increase speed
       
    58 #define BSWAP32(x) Endian32_Swap(x)
       
    59 #define BSWAP16(x) Endian16_Swap(x)
       
    60 #else
    55 #define BSWAP32(x) ((((x) >> 24) & 0xFF) | (((x) >> 8) & 0xFF00) | (((x) << 8) & 0xFF0000) | (((x) << 24) & 0xFF000000))
    61 #define BSWAP32(x) ((((x) >> 24) & 0xFF) | (((x) >> 8) & 0xFF00) | (((x) << 8) & 0xFF0000) | (((x) << 24) & 0xFF000000))
    56 #define BSWAP16(x) ((x) >> 8 | (x) << 8)
    62 #define BSWAP16(x) ((x) >> 8 | (x) << 8)
       
    63 #endif
    57 
    64 
    58 // by default we use [] var arrays
    65 // by default we use [] var arrays
    59 #define VARARRAY_SIZE
    66 #define VARARRAY_SIZE
    60 
    67 
    61 
    68