Do not #pragma pack(1) before including headers

This commit is contained in:
Peter Dimov
2019-04-27 22:37:40 +03:00
parent 15e6923325
commit 43d21860a4

View File

@ -27,10 +27,6 @@
# pragma warning(disable: 4127) // conditional expression is constant
#endif
#if defined(__BORLANDC__) || defined( __CODEGEARC__)
# pragma pack(push, 1)
#endif
#include <boost/endian/detail/endian_store.hpp>
#include <boost/endian/detail/endian_load.hpp>
#include <boost/core/scoped_enum.hpp>
@ -43,6 +39,10 @@
#include <climits>
#include <cstring>
#if defined(__BORLANDC__) || defined( __CODEGEARC__)
# pragma pack(push, 1)
#endif
# if CHAR_BIT != 8
# error Platforms with CHAR_BIT != 8 are not supported
# endif