We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 608dbf0 commit 4b89621Copy full SHA for 4b89621
1 file changed
src/native/corehost/json_parser.h
@@ -8,12 +8,22 @@
8
// https://github.com/Tencent/rapidjson/issues/1596#issuecomment-548774663
9
#define RAPIDJSON_48BITPOINTER_OPTIMIZATION 0
10
11
+// see https://github.com/Tencent/rapidjson/issues/1448
12
+// including windows.h on purpose to provoke a compile time problem as GetObject is a
13
+// macro that gets defined when windows.h is included
14
+#ifdef _WIN32
15
+#define NOMINMAX
16
+#include <windows.h>
17
+#endif
18
+
19
#include "pal.h"
20
#include <external/rapidjson/document.h>
21
#include <external/rapidjson/fwd.h>
22
#include <vector>
23
#include "bundle/info.h"
24
25
+#undef GetObject
26
27
class json_parser_t {
28
public:
29
#ifdef _WIN32
0 commit comments