Fix some conflicts with windows.h in some configurations

Fixes build in the MSYS2 Clang/ClangARM64 environments.
This commit is contained in:
Nadia Holmquist Pedersen
2023-12-11 10:56:09 +01:00
parent 082310d5d5
commit 81219a9f5d
4 changed files with 128 additions and 124 deletions

View File

@ -130,7 +130,7 @@ bool SemInit(int num)
char semname[64];
sprintf(semname, "Local\\melonNIFI_Sem%02d", num);
HANDLE sem = CreateSemaphore(nullptr, 0, 64, semname);
HANDLE sem = CreateSemaphoreA(nullptr, 0, 64, semname);
SemPool[num] = sem;
SemInited[num] = true;
return sem != INVALID_HANDLE_VALUE;