aboutsummaryrefslogtreecommitdiff
path: root/ports/cpprestsdk/undef-minmax.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ports/cpprestsdk/undef-minmax.patch')
-rw-r--r--ports/cpprestsdk/undef-minmax.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/ports/cpprestsdk/undef-minmax.patch b/ports/cpprestsdk/undef-minmax.patch
new file mode 100644
index 000000000..4dc3bc019
--- /dev/null
+++ b/ports/cpprestsdk/undef-minmax.patch
@@ -0,0 +1,14 @@
+diff --git a/Release/src/http/client/http_client_winrt.cpp b/Release/src/http/client/http_client_winrt.cpp
+index 697f48a..4ada65a 100644
+--- a/Release/src/http/client/http_client_winrt.cpp
++++ b/Release/src/http/client/http_client_winrt.cpp
+@@ -28,6 +28,9 @@ using namespace std;
+ using namespace Platform;
+ using namespace Microsoft::WRL;
+
++#undef min
++#undef max
++
+ namespace web
+ {
+ namespace http