aboutsummaryrefslogtreecommitdiff
path: root/ports/openssl-uwp/fix-uwp-rs4.patch
blob: d5a33909e4f08c3db7e17903c3cfa2e181c2d8ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);