You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
770 B

  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(__BORLANDC__) || defined (__BCPLUSPLUS__)
  15. # pragma pack( pop )
  16. #endif
  17. #undef PACK_STRUCT
  18. #undef AI_PUSHPACK_IS_DEFINED