forked from boostorg/endian
Do not #pragma pack(1) before including headers
This commit is contained in:
@ -27,10 +27,6 @@
|
|||||||
# pragma warning(disable: 4127) // conditional expression is constant
|
# pragma warning(disable: 4127) // conditional expression is constant
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__BORLANDC__) || defined( __CODEGEARC__)
|
|
||||||
# pragma pack(push, 1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <boost/endian/detail/endian_store.hpp>
|
#include <boost/endian/detail/endian_store.hpp>
|
||||||
#include <boost/endian/detail/endian_load.hpp>
|
#include <boost/endian/detail/endian_load.hpp>
|
||||||
#include <boost/core/scoped_enum.hpp>
|
#include <boost/core/scoped_enum.hpp>
|
||||||
@ -43,6 +39,10 @@
|
|||||||
#include <climits>
|
#include <climits>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
#if defined(__BORLANDC__) || defined( __CODEGEARC__)
|
||||||
|
# pragma pack(push, 1)
|
||||||
|
#endif
|
||||||
|
|
||||||
# if CHAR_BIT != 8
|
# if CHAR_BIT != 8
|
||||||
# error Platforms with CHAR_BIT != 8 are not supported
|
# error Platforms with CHAR_BIT != 8 are not supported
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user