summaryrefslogtreecommitdiff
path: root/json
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2020-05-08 05:26:56 -0400
committerRusty Wagner <rusty@vector35.com>2020-05-11 15:55:54 -0400
commit0cf59807fa364b11de65dc3f1e1c2d2bc7dd87a2 (patch)
treea909c15c117f5eb1cf38853659ba799f1b5c1506 /json
parentceacbae6b36e1425c2e0dd87c73075858f21ec10 (diff)
Modifications for supporting jemalloc in the core
Diffstat (limited to 'json')
-rw-r--r--json/json.h2
-rw-r--r--json/jsoncpp.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/json/json.h b/json/json.h
index 51a38e65..da91470a 100644
--- a/json/json.h
+++ b/json/json.h
@@ -308,7 +308,7 @@ typedef UInt64 LargestUInt;
std::basic_istringstream<char, std::char_traits<char>, \
Json::SecureAllocator<char> >
#define JSONCPP_ISTREAM std::istream
-#else
+#elif !defined(JSONCPP_STRING)
#define JSONCPP_STRING std::string
#define JSONCPP_OSTRINGSTREAM std::ostringstream
#define JSONCPP_OSTREAM std::ostream
diff --git a/json/jsoncpp.cpp b/json/jsoncpp.cpp
index c2a949d3..4154200b 100644
--- a/json/jsoncpp.cpp
+++ b/json/jsoncpp.cpp
@@ -71,7 +71,9 @@ license you like.
-
+#ifdef BINARYNINJACORE_LIBRARY
+#include "binaryninjacore_global.h"
+#endif
#include "json/json.h"