Skip to content

Commit

Permalink
Fix build error for ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Sep 25, 2022
1 parent 00add4d commit f447314
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/WinWebDiffLib/DOMUtils.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#pragma once

#if defined(_M_ARM64) && !defined(RAPIDJSON_ENDIAN)
#define RAPIDJSON_ENDIAN RAPIDJSON_LITTLEENDIAN
#endif
#include <rapidjson/document.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/stringbuffer.h>
Expand Down
6 changes: 0 additions & 6 deletions src/WinWebDiffLib/WebWindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@

#undef max
#undef min
#ifdef _M_ARM64
#define RAPIDJSON_ENDIAN RAPIDJSON_LITTLEENDIAN
#endif
#include <string>
#include <vector>
#include <filesystem>
#include <memory>
#include <cassert>
#include <functional>
#include <rapidjson/document.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/stringbuffer.h>
#include <WebView2.h>
#include <WebView2Experimental.h>
#include <WebView2EnvironmentOptions.h>
Expand Down

0 comments on commit f447314

Please sign in to comment.