diff options
| author | Michael Heyman <mheyman@gmail.com> | 2020-11-05 21:21:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-05 18:21:17 -0800 |
| commit | bf7f7a1162bf704f2b1a3047caf923bd0d5db0b3 (patch) | |
| tree | 8055a136e86b9ecbbb3f2cb3f353dbe4387542f5 /ports/oatpp-mongo/no-designatore-expression.patch | |
| parent | 5eae413e9ca1936dc94b643929a30d7660ab9593 (diff) | |
| download | vcpkg-bf7f7a1162bf704f2b1a3047caf923bd0d5db0b3.tar.gz vcpkg-bf7f7a1162bf704f2b1a3047caf923bd0d5db0b3.zip | |
[oatpp] Add new port and vcpkg.json (#14341)
Diffstat (limited to 'ports/oatpp-mongo/no-designatore-expression.patch')
| -rw-r--r-- | ports/oatpp-mongo/no-designatore-expression.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ports/oatpp-mongo/no-designatore-expression.patch b/ports/oatpp-mongo/no-designatore-expression.patch new file mode 100644 index 000000000..f82620487 --- /dev/null +++ b/ports/oatpp-mongo/no-designatore-expression.patch @@ -0,0 +1,24 @@ +diff --git a/src/oatpp-mongo/bson/Utils.cpp b/src/oatpp-mongo/bson/Utils.cpp +index c848c59..32a9e4c 100644 +--- a/src/oatpp-mongo/bson/Utils.cpp ++++ b/src/oatpp-mongo/bson/Utils.cpp +@@ -34,7 +34,8 @@ Utils::BO_TYPE Utils::FLOAT_BO = detectFloatBO(); + + Utils::BO_TYPE Utils::detectIntBO() { + BO_TYPE result = BO_TYPE::UNKNOWN; +- BO_CHECK check {.i64 = 255}; ++ BO_CHECK check; ++ check.i64 = 255; + if(check.bytes[0] == 255) { + result = BO_TYPE::LITTLE; + } else if(check.bytes[7] == 255) { +@@ -45,7 +46,8 @@ Utils::BO_TYPE Utils::detectIntBO() { + + Utils::BO_TYPE Utils::detectFloatBO() { + BO_TYPE result = BO_TYPE::UNKNOWN; +- BO_CHECK check {.f64 = 2.0}; ++ BO_CHECK check; ++ check.f64 = 2.0; + if(check.bytes[0] > 0) { + result = BO_TYPE::NETWORK; + } else if(check.bytes[7] > 0) { |
