mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix WinRT build with recent Windows SDK
This commit is contained in:
parent
d1869b37a3
commit
2f3d1c8c8e
1 changed files with 4 additions and 0 deletions
4
thirdparty/openssl/winrt.cpp
vendored
4
thirdparty/openssl/winrt.cpp
vendored
|
|
@ -98,6 +98,7 @@ BOOL DeregisterEventSource(
|
||||||
_Inout_ HANDLE hEventLog) {
|
_Inout_ HANDLE hEventLog) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_WIN10_RS4)
|
||||||
char *getenv(
|
char *getenv(
|
||||||
const char *varname) {
|
const char *varname) {
|
||||||
//hardcoded environmental variables used for the appx testing application for store/phone
|
//hardcoded environmental variables used for the appx testing application for store/phone
|
||||||
|
|
@ -109,16 +110,19 @@ char *getenv(
|
||||||
int setenv(const char *envname, const char *envval, int overwrite) {
|
int setenv(const char *envname, const char *envval, int overwrite) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
int _getch(void) {
|
int _getch(void) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int _kbhit() {
|
int _kbhit() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_WIN10_RS4)
|
||||||
BOOL __cdecl FlushConsoleInputBuffer(
|
BOOL __cdecl FlushConsoleInputBuffer(
|
||||||
_In_ HANDLE hConsoleInput) {
|
_In_ HANDLE hConsoleInput) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
int winrt_GetTickCount(void) {
|
int winrt_GetTickCount(void) {
|
||||||
LARGE_INTEGER t;
|
LARGE_INTEGER t;
|
||||||
return (int)(QueryPerformanceCounter(&t) ? t.QuadPart : 0);
|
return (int)(QueryPerformanceCounter(&t) ? t.QuadPart : 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue