@@ -78,6 +78,14 @@ license you like.
7878// / to prevent private header inclusion.
7979#define JSON_IS_AMALGAMATION
8080
81+ #ifdef BINARYNINJACORE_LIBRARY
82+ #define JSONCPP_INLINE_NS_BEGIN inline namespace Core {
83+ #define JSONCPP_INLINE_NS_END }
84+ #else
85+ #define JSONCPP_INLINE_NS_BEGIN
86+ #define JSONCPP_INLINE_NS_END
87+ #endif
88+
8189// //////////////////////////////////////////////////////////////////////
8290// Beginning of content of file: include/json/version.h
8391// //////////////////////////////////////////////////////////////////////
@@ -278,6 +286,7 @@ license you like.
278286#endif // if !defined(JSON_IS_AMALGAMATION)
279287
280288namespace Json {
289+ JSONCPP_INLINE_NS_BEGIN
281290typedef int Int;
282291typedef unsigned int UInt;
283292#if defined(JSON_NO_INT64)
@@ -315,6 +324,7 @@ typedef UInt64 LargestUInt;
315324#define JSONCPP_ISTRINGSTREAM std::istringstream
316325#define JSONCPP_ISTREAM std::istream
317326#endif // if JSONCPP_USING_SECURE_MEMORY
327+ JSONCPP_INLINE_NS_END
318328} // end namespace Json
319329
320330#endif // JSON_CONFIG_H_INCLUDED
@@ -345,6 +355,7 @@ typedef UInt64 LargestUInt;
345355#endif // if !defined(JSON_IS_AMALGAMATION)
346356
347357namespace Json {
358+ JSONCPP_INLINE_NS_BEGIN
348359
349360// writer.h
350361class FastWriter ;
@@ -366,6 +377,7 @@ class ValueIteratorBase;
366377class ValueIterator ;
367378class ValueConstIterator ;
368379
380+ JSONCPP_INLINE_NS_END
369381} // namespace Json
370382
371383#endif // JSON_FORWARDS_H_INCLUDED
@@ -398,6 +410,7 @@ class ValueConstIterator;
398410#pragma pack(push, 8)
399411
400412namespace Json {
413+ JSONCPP_INLINE_NS_BEGIN
401414
402415/* * \brief Configuration passed to reader and writer.
403416 * This configuration object can be used to force the Reader or Writer
@@ -439,6 +452,7 @@ class JSON_API Features {
439452 bool allowNumericKeys_;
440453};
441454
455+ JSONCPP_INLINE_NS_END
442456} // namespace Json
443457
444458#pragma pack(pop)
@@ -515,6 +529,7 @@ class JSON_API Features {
515529/* * \brief JSON (JavaScript Object Notation).
516530 */
517531namespace Json {
532+ JSONCPP_INLINE_NS_BEGIN
518533
519534/* * Base class for all exceptions we throw.
520535 *
@@ -1364,6 +1379,7 @@ class JSON_API ValueIterator : public ValueIteratorBase {
13641379
13651380inline void swap (Value& a, Value& b) { a.swap (b); }
13661381
1382+ JSONCPP_INLINE_NS_END
13671383} // namespace Json
13681384
13691385#pragma pack(pop)
@@ -1415,6 +1431,7 @@ inline void swap(Value& a, Value& b) { a.swap(b); }
14151431#pragma pack(push, 8)
14161432
14171433namespace Json {
1434+ JSONCPP_INLINE_NS_BEGIN
14181435
14191436/* * \brief Unserialize a <a HREF="http://www.json.org">JSON</a> document into a
14201437 *Value.
@@ -1798,6 +1815,7 @@ bool JSON_API parseFromStream(CharReader::Factory const&,
17981815*/
17991816JSON_API JSONCPP_ISTREAM& operator >>(JSONCPP_ISTREAM&, Value&);
18001817
1818+ JSONCPP_INLINE_NS_END
18011819} // namespace Json
18021820
18031821#pragma pack(pop)
@@ -1846,6 +1864,7 @@ JSON_API JSONCPP_ISTREAM& operator>>(JSONCPP_ISTREAM&, Value&);
18461864#pragma pack(push, 8)
18471865
18481866namespace Json {
1867+ JSONCPP_INLINE_NS_BEGIN
18491868
18501869class Value ;
18511870
@@ -2180,6 +2199,7 @@ JSONCPP_STRING JSON_API valueToQuotedString(const char* value);
21802199// / \see Json::operator>>()
21812200JSON_API JSONCPP_OSTREAM& operator <<(JSONCPP_OSTREAM&, const Value& root);
21822201
2202+ JSONCPP_INLINE_NS_END
21832203} // namespace Json
21842204
21852205#pragma pack(pop)
0 commit comments