mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-27 03:08:35 -06:00
jsoncpp: Fix compilation on SunPro
The SunPro compiler does not support `#pragma pack`.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user