Skip to content

Commit f447314

Browse files
committed
Fix build error for ARM64
1 parent 00add4d commit f447314

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/WinWebDiffLib/DOMUtils.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#pragma once
22

3+
#if defined(_M_ARM64) && !defined(RAPIDJSON_ENDIAN)
4+
#define RAPIDJSON_ENDIAN RAPIDJSON_LITTLEENDIAN
5+
#endif
36
#include <rapidjson/document.h>
47
#include <rapidjson/prettywriter.h>
58
#include <rapidjson/stringbuffer.h>

src/WinWebDiffLib/WebWindow.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@
22

33
#undef max
44
#undef min
5-
#ifdef _M_ARM64
6-
#define RAPIDJSON_ENDIAN RAPIDJSON_LITTLEENDIAN
7-
#endif
85
#include <string>
96
#include <vector>
107
#include <filesystem>
118
#include <memory>
129
#include <cassert>
1310
#include <functional>
14-
#include <rapidjson/document.h>
15-
#include <rapidjson/prettywriter.h>
16-
#include <rapidjson/stringbuffer.h>
1711
#include <WebView2.h>
1812
#include <WebView2Experimental.h>
1913
#include <WebView2EnvironmentOptions.h>

0 commit comments

Comments
 (0)