miniassimp

view 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
line source
2 // ===============================================================================
3 // May be included multiple times - resets structure packing to the defaults
4 // for all supported compilers. Reverts the changes made by #include <pushpack1.h>
5 //
6 // Currently this works on the following compilers:
7 // MSVC 7,8,9
8 // GCC
9 // BORLAND (complains about 'pack state changed but not reverted', but works)
10 // ===============================================================================
12 #ifndef AI_PUSHPACK_IS_DEFINED
13 # error pushpack1.h must be included after poppack1.h
14 #endif
16 // reset packing to the original value
17 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__)
18 # pragma pack( pop )
19 #endif
20 #undef PACK_STRUCT
22 #undef AI_PUSHPACK_IS_DEFINED