jsoncpp: Fix compilation on SunPro

The SunPro compiler does not support `#pragma pack`.
This commit is contained in:
Brad King
2017-08-29 08:04:45 -04:00
parent 0a0f71066f
commit c103a959d1
5 changed files with 20 additions and 0 deletions

View File

@@ -10,7 +10,9 @@
#include "forwards.h"
#endif // if !defined(JSON_IS_AMALGAMATION)
#if !defined(__SUNPRO_CC)
#pragma pack(push, 8)
#endif
namespace Json {
@@ -56,6 +58,8 @@ public:
} // namespace Json
#if !defined(__SUNPRO_CC)
#pragma pack(pop)
#endif
#endif // CPPTL_JSON_FEATURES_H_INCLUDED