miniassimp
annotate include/miniassimp/Compiler/poppack1.h @ 0:879c81d94345
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 28 Jan 2019 18:19:26 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 |
nuclear@0 | 2 // =============================================================================== |
nuclear@0 | 3 // May be included multiple times - resets structure packing to the defaults |
nuclear@0 | 4 // for all supported compilers. Reverts the changes made by #include <pushpack1.h> |
nuclear@0 | 5 // |
nuclear@0 | 6 // Currently this works on the following compilers: |
nuclear@0 | 7 // MSVC 7,8,9 |
nuclear@0 | 8 // GCC |
nuclear@0 | 9 // BORLAND (complains about 'pack state changed but not reverted', but works) |
nuclear@0 | 10 // =============================================================================== |
nuclear@0 | 11 |
nuclear@0 | 12 #ifndef AI_PUSHPACK_IS_DEFINED |
nuclear@0 | 13 # error pushpack1.h must be included after poppack1.h |
nuclear@0 | 14 #endif |
nuclear@0 | 15 |
nuclear@0 | 16 // reset packing to the original value |
nuclear@0 | 17 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__) |
nuclear@0 | 18 # pragma pack( pop ) |
nuclear@0 | 19 #endif |
nuclear@0 | 20 #undef PACK_STRUCT |
nuclear@0 | 21 |
nuclear@0 | 22 #undef AI_PUSHPACK_IS_DEFINED |