2
0
Эх сурвалжийг харах

UWP: Update to build with Windows SDK 10.16229.0

- Update the OpenSSL shim to work with the new SDK
- Change the ARM platform detection to work with VS2017
George Marques 8 жил өмнө
parent
commit
a3387a9e22

+ 1 - 1
platform/uwp/detect.py

@@ -84,7 +84,7 @@ def configure(env):
     ## Architecture
     ## Architecture
 
 
     arch = ""
     arch = ""
-    if os.getenv('Platform') == "ARM":
+    if str(os.getenv('Platform')).lower() == "arm":
 
 
         print("Compiled program architecture will be an ARM executable. (forcing bits=32).")
         print("Compiled program architecture will be an ARM executable. (forcing bits=32).")
 
 

+ 2 - 0
thirdparty/openssl/uwp.cpp

@@ -103,12 +103,14 @@ extern "C"
 		{
 		{
 		return 0;
 		return 0;
 		}
 		}
+#ifndef STD_ERROR_HANDLE
 	int __cdecl GetStdHandle(
 	int __cdecl GetStdHandle(
 						   _In_  DWORD nStdHandle
 						   _In_  DWORD nStdHandle
 						   )
 						   )
 		{
 		{
 		return 0;
 		return 0;
 		}
 		}
+#endif
 	BOOL DeregisterEventSource(
 	BOOL DeregisterEventSource(
 							  _Inout_  HANDLE hEventLog
 							  _Inout_  HANDLE hEventLog
 							  )
 							  )