diff --git a/platform/winrt/detect.py b/platform/winrt/detect.py index 4601a308832..a23b66c7af5 100644 --- a/platform/winrt/detect.py +++ b/platform/winrt/detect.py @@ -56,7 +56,7 @@ def configure(env): if os.path.isfile(str(os.getenv("ANGLE_SRC_PATH")) + "/winrt/10/src/angle.sln"): env["build_angle"] = True - if os.getenv('Platform') == "ARM": + if str(os.getenv('Platform')).lower() == "arm": print("Compiled program architecture will be an ARM executable. (forcing bits=32).") @@ -104,10 +104,6 @@ def configure(env): env.Append(CPPPATH=['#platform/winrt','#drivers/windows']) env.Append(LINKFLAGS=['/MANIFEST:NO', '/NXCOMPAT', '/DYNAMICBASE', '/WINMD', '/APPCONTAINER', '/ERRORREPORT:PROMPT', '/NOLOGO', '/TLBID:1', '/NODEFAULTLIB:"kernel32.lib"', '/NODEFAULTLIB:"ole32.lib"']) env.Append(CPPFLAGS=['/D', '__WRL_NO_DEFAULT_LIB__', '/D', 'WIN32', '/DPNG_ABORT=abort']) - env.Append(CPPFLAGS=['/FU', os.environ['VCINSTALLDIR'] + 'lib/store/references/platform.winmd']) - env.Append(CPPFLAGS=['/AI', os.environ['VCINSTALLDIR'] + 'lib/store/references']) - - env.Append(LIBPATH=[os.environ['VCINSTALLDIR'] + 'lib/store/references']) if (env["target"]=="release"): diff --git a/thirdparty/openssl/winrt.cpp b/thirdparty/openssl/winrt.cpp index d451476b324..888a1072a13 100644 --- a/thirdparty/openssl/winrt.cpp +++ b/thirdparty/openssl/winrt.cpp @@ -88,10 +88,12 @@ BOOL __cdecl GetUserObjectInformationW( _Out_opt_ LPDWORD lpnLengthNeeded) { return 0; } -int __cdecl GetStdHandle( +#ifndef STD_ERROR_HANDLE +HANDLE __cdecl GetStdHandle( _In_ DWORD nStdHandle) { return 0; } +#endif BOOL DeregisterEventSource( _Inout_ HANDLE hEventLog) { return 0;