poppack1.h 793 B

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