miniassimp

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/include/miniassimp/Compiler/poppack1.h	Mon Jan 28 18:19:26 2019 +0200
     1.3 @@ -0,0 +1,22 @@
     1.4 +
     1.5 +// ===============================================================================
     1.6 +// May be included multiple times - resets structure packing to the defaults 
     1.7 +// for all supported compilers. Reverts the changes made by #include <pushpack1.h> 
     1.8 +//
     1.9 +// Currently this works on the following compilers:
    1.10 +// MSVC 7,8,9
    1.11 +// GCC
    1.12 +// BORLAND (complains about 'pack state changed but not reverted', but works)
    1.13 +// ===============================================================================
    1.14 +
    1.15 +#ifndef AI_PUSHPACK_IS_DEFINED
    1.16 +#	error pushpack1.h must be included after poppack1.h
    1.17 +#endif
    1.18 +
    1.19 +// reset packing to the original value
    1.20 +#if defined(_MSC_VER) ||  defined(__BORLANDC__) || defined (__BCPLUSPLUS__)
    1.21 +#	pragma pack( pop )
    1.22 +#endif
    1.23 +#undef PACK_STRUCT
    1.24 +
    1.25 +#undef AI_PUSHPACK_IS_DEFINED