fixed windows qt build

This commit is contained in:
georgemoralis 2024-06-11 23:26:13 +03:00
parent 8612907831
commit 8362e2c497
1 changed files with 2 additions and 2 deletions

View File

@ -9,12 +9,12 @@
#include "core/libraries/libs.h"
#ifdef _WIN64
#include <Windows.h>
#include <pthread_time.h>
#include <windows.h>
// http://stackoverflow.com/a/31411628/4725495
static u32(__stdcall* NtDelayExecution)(BOOL Alertable, PLARGE_INTEGER DelayInterval) =
(u32(__stdcall*)(BOOL, PLARGE_INTEGER))GetProcAddress(GetModuleHandle("ntdll.dll"),
(u32(__stdcall*)(BOOL, PLARGE_INTEGER))GetProcAddress(GetModuleHandleA("ntdll.dll"),
"NtDelayExecution");
#else
#include <time.h>