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

@@ -42,7 +42,9 @@
#pragma warning(disable : 4251)
#endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)
#if !defined(__SUNPRO_CC)
#pragma pack(push, 8)
#endif
/** \brief JSON (JavaScript Object Notation).
*/
@@ -878,7 +880,9 @@ template<>
inline void swap(Json::Value& a, Json::Value& b) { a.swap(b); }
}
#if !defined(__SUNPRO_CC)
#pragma pack(pop)
#endif
#if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)
#pragma warning(pop)