diff options
| author | Steven Fuller <relnev@icculus.org> | 2008-05-18 01:43:58 -0700 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | 7213d915858629b644b7f5f464ac75014f19c77e (patch) | |
| tree | 1af7f8adc19f4ad9653d4c3acf60a0872a0b5c7f /src/fixer.h | |
| parent | 2fee7a06b49173815fab032ac48496d874445d33 (diff) | |
Windows WIP.
Added VS-style structure packing support.
Diffstat (limited to 'src/fixer.h')
| -rw-r--r-- | src/fixer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fixer.h b/src/fixer.h index d619c0f..19a049d 100644 --- a/src/fixer.h +++ b/src/fixer.h @@ -20,8 +20,9 @@ #define PATH_MAX MAX_PATH #endif -// gonna deal with this one later. -#define PACKED +#define PACKED_PUSH __pragma( pack(push, 1) ); +#define PACKED_POP __pragma( pack(pop) ); +#define PACKED // not sure where this was originally defined. #define RGBA_MAKE(r, g, b, a) ((((a) << 24) | ((r) << 16) | ((g) << 8) | (b))) @@ -99,6 +100,8 @@ extern "C" { #include "files.h" +#define PACKED_PUSH +#define PACKED_POP #define PACKED __attribute__((packed)) /* windows junk */ |
