diff options
author | Sam Lantinga <slouken@libsdl.org> | 2001-09-23 18:10:59 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2001-09-23 18:10:59 +0000 |
commit | 9415efe0161913c27198cad7fd8646a65a2a3560 (patch) | |
tree | f7907c9ce691bb29de1a9264b5231534a6cc255e /include/close_code.h | |
parent | 52d1f2c14ee7e8aee9d98f43fb81c3213fabbd13 (diff) | |
download | sdl-9415efe0161913c27198cad7fd8646a65a2a3560.tar.gz |
Date: Thu, 13 Sep 2001 14:14:42 -0400
From: "David Chait" <davebytes@hotmail.com>
Subject: sdlmods.zip
-- Message: 502 -- Next: 503 N --------------------------------------------
now bracketed with (MWERKS && macintosh), so it'll work under metrowerks under any kind of mac build. Project Builder probably uses pack properly as it is GCC under the covers, so not worrying about it... :)
it sets packing to 68K 4-byte alignment, and turns on enumsalwaysint. resets them both to project defaults when done. note that if a project sets these things in a header and expects the settings to last throughout a C file (which is a nasty thing to do), it won't work. I think there's an overall-state push/pop system, but it's a deprecated interface so I'm loathe to use it...
Diffstat (limited to 'include/close_code.h')
-rw-r--r-- | include/close_code.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/close_code.h b/include/close_code.h index 0a3044f00..d3b5c07e8 100644 --- a/include/close_code.h +++ b/include/close_code.h @@ -31,6 +31,11 @@ #ifdef __BORLANDC__ #pragma nopackwarning #endif +#if (defined(__MWERKS__) && defined(macintosh)) +#pragma options align=reset +#pragma enumsalwaysint reset +#else #pragma pack(pop) +#endif #endif /* Compiler needs structure packing set */ |