diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-07-17 16:07:52 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-07-17 16:09:12 -0700 |
| commit | b4422a1b7ec3c0728108972c07f4daeaa2c9b2a8 (patch) | |
| tree | e65ae338893770d97bf6fb2c8230cd47c3cf2cd1 /ports/openssl-uwp/fix-uwp-rs4.patch | |
| parent | c2f96eb79ac11be000b7b26134ff89946bfa6458 (diff) | |
| download | vcpkg-b4422a1b7ec3c0728108972c07f4daeaa2c9b2a8.tar.gz vcpkg-b4422a1b7ec3c0728108972c07f4daeaa2c9b2a8.zip | |
[openssl] Split openssl into multiple ports per platform
Diffstat (limited to 'ports/openssl-uwp/fix-uwp-rs4.patch')
| -rw-r--r-- | ports/openssl-uwp/fix-uwp-rs4.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ports/openssl-uwp/fix-uwp-rs4.patch b/ports/openssl-uwp/fix-uwp-rs4.patch new file mode 100644 index 000000000..d5a33909e --- /dev/null +++ b/ports/openssl-uwp/fix-uwp-rs4.patch @@ -0,0 +1,26 @@ +diff --git a/ms/winrtdef.h b/ms/winrtdef.h
+index b1a7598..6ba2e1d 100644
+--- a/ms/winrtdef.h
++++ b/ms/winrtdef.h
+@@ -6,9 +6,11 @@
+ #if defined(OPENSSL_WINAPP)
+ //Include stdio.h to replace fprintf
+ # include<stdio.h>
++#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_WIN10_RS4)
+ # ifdef getenv
+ # undef getenv
+ # endif
++#endif
+ # ifdef setenv
+ # undef setenv
+ # endif
+@@ -32,7 +34,9 @@
+ # undef GetModuleHandle
+ # define GetModuleHandle winrt_GetModuleHandle
+ # endif
++#if !defined(NTDDI_WIN10_RS4) || (NTDDI_VERSION < NTDDI_WIN10_RS4)
+ # define getenv winrt_getenv
++#endif
+ # define setenv winrt_getenv
+
+ int winrt_GetTickCount(void);
|
