diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-10-22 03:43:11 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-10-25 10:28:08 -0700 |
| commit | 9cb0f3c8aee0431981e1d0d59c1ecfbe698ddf5d (patch) | |
| tree | 813b2a5ed3c8265aa25e142b052cc6f142b40a23 /ports/rapidjson/arm64-endian.patch | |
| parent | 854a1e474e9be180f39f19d98f1770c2a9599493 (diff) | |
| download | vcpkg-9cb0f3c8aee0431981e1d0d59c1ecfbe698ddf5d.tar.gz vcpkg-9cb0f3c8aee0431981e1d0d59c1ecfbe698ddf5d.zip | |
[rapidjson] Fix #error on arm64
Diffstat (limited to 'ports/rapidjson/arm64-endian.patch')
| -rw-r--r-- | ports/rapidjson/arm64-endian.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/rapidjson/arm64-endian.patch b/ports/rapidjson/arm64-endian.patch new file mode 100644 index 000000000..81fd92132 --- /dev/null +++ b/ports/rapidjson/arm64-endian.patch @@ -0,0 +1,13 @@ +diff --git a/include/rapidjson/rapidjson.h b/include/rapidjson/rapidjson.h
+index 053b2ce..1e0b8f3 100644
+--- a/include/rapidjson/rapidjson.h
++++ b/include/rapidjson/rapidjson.h
+@@ -236,7 +236,7 @@
+ # define RAPIDJSON_ENDIAN RAPIDJSON_BIGENDIAN
+ # elif defined(__i386__) || defined(__alpha__) || defined(__ia64) || defined(__ia64__) || defined(_M_IX86) || defined(_M_IA64) || defined(_M_ALPHA) || defined(__amd64) || defined(__amd64__) || defined(_M_AMD64) || defined(__x86_64) || defined(__x86_64__) || defined(_M_X64) || defined(__bfin__)
+ # define RAPIDJSON_ENDIAN RAPIDJSON_LITTLEENDIAN
+-# elif defined(_MSC_VER) && defined(_M_ARM)
++# elif defined(_MSC_VER) && (defined(_M_ARM) || defined(_M_ARM64))
+ # define RAPIDJSON_ENDIAN RAPIDJSON_LITTLEENDIAN
+ # elif defined(RAPIDJSON_DOXYGEN_RUNNING)
+ # define RAPIDJSON_ENDIAN
|
