include/begin_code.h
changeset 195 3669d47b07d3
parent 189 175917167aac
child 251 b8688cfdc232
equal deleted inserted replaced
194:ba9e0fcc2ae2 195:3669d47b07d3
    57 /* Force structure packing at 4 byte alignment.
    57 /* Force structure packing at 4 byte alignment.
    58    This is necessary if the header is included in code which has structure
    58    This is necessary if the header is included in code which has structure
    59    packing set to an alternate value, say for loading structures from disk.
    59    packing set to an alternate value, say for loading structures from disk.
    60    The packing is reset to the previous value in close_code.h
    60    The packing is reset to the previous value in close_code.h
    61  */
    61  */
    62 #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__APPLE__)
    62 #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__WATCOMC__) || defined(__BORLANDC__)
    63 #ifdef _MSC_VER
    63 #ifdef _MSC_VER
    64 #pragma warning(disable: 4103)
    64 #pragma warning(disable: 4103)
    65 #endif
    65 #endif
    66 #ifdef __BORLANDC__
    66 #ifdef __BORLANDC__
    67 #pragma nopackwarning
    67 #pragma nopackwarning
    68 #endif
    68 #endif
    69 #if (defined(__MWERKS__) && defined(macintosh))
    69 #pragma pack(push,4)
       
    70 #elif (defined(__MWERKS__) && defined(macintosh))
    70 #pragma options align=mac68k4byte
    71 #pragma options align=mac68k4byte
    71 #pragma enumsalwaysint on
    72 #pragma enumsalwaysint on
    72 #else
       
    73 #pragma pack(push,4)
       
    74 #endif
       
    75 #endif /* Compiler needs structure packing set */
    73 #endif /* Compiler needs structure packing set */
    76 
    74 
    77 /* Set up compiler-specific options for inlining functions */
    75 /* Set up compiler-specific options for inlining functions */
    78 #ifndef SDL_INLINE_OKAY
    76 #ifndef SDL_INLINE_OKAY
    79 #ifdef __GNUC__
    77 #ifdef __GNUC__