diff --git a/include/boost/endian/buffers.hpp b/include/boost/endian/buffers.hpp index a1ca152..614874a 100644 --- a/include/boost/endian/buffers.hpp +++ b/include/boost/endian/buffers.hpp @@ -27,10 +27,6 @@ # pragma warning(disable: 4127) // conditional expression is constant #endif -#if defined(__BORLANDC__) || defined( __CODEGEARC__) -# pragma pack(push, 1) -#endif - #include #include #include @@ -43,6 +39,10 @@ #include #include +#if defined(__BORLANDC__) || defined( __CODEGEARC__) +# pragma pack(push, 1) +#endif + # if CHAR_BIT != 8 # error Platforms with CHAR_BIT != 8 are not supported # endif