From 43d21860a46d1a4c8cd6ddf49eae477cdaa5a523 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 27 Apr 2019 22:37:40 +0300 Subject: [PATCH] Do not #pragma pack(1) before including headers --- include/boost/endian/buffers.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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