Sfoglia il codice sorgente

Merge pull request #12787 from vnen/uwp-vs2017

UWP: Update to build with Windows SDK 10.16229.0
Rémi Verschelde 7 anni fa
parent
commit
c179db29d9
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 1 1
      platform/uwp/detect.py
  2. 2 0
      thirdparty/openssl/uwp.cpp

+ 1 - 1
platform/uwp/detect.py

@@ -84,7 +84,7 @@ def configure(env):
     ## Architecture
 
     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).")
 

+ 2 - 0
thirdparty/openssl/uwp.cpp

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