-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
The Windows executable fails to build on CI. It appears to have some naming conflict:
utilsfuncswin.cpp:55:9: warning: 'KEY_WOW64_64KEY' redefined
55 | #define KEY_WOW64_64KEY 0x0100
| ^~~~~~~~~~~~~~~
In file included from D:/a/_temp/msys64/ucrt64/include/minwindef.h:163,
from D:/a/_temp/msys64/ucrt64/include/windef.h:9,
from D:/a/_temp/msys64/ucrt64/include/windows.h:69,
from utilsfuncs.h:69,
from utilsfuncswin.cpp:1:
D:/a/_temp/msys64/ucrt64/include/winnt.h:9956:9: note: this is the location of the previous definition
9956 | #define KEY_WOW64_64KEY (0x0100)
| ^~~~~~~~~~~~~~~
utilsfuncswin.cpp:56:9: warning: 'KEY_WOW64_32KEY' redefined
56 | #define KEY_WOW64_32KEY 0x0200
| ^~~~~~~~~~~~~~~
D:/a/_temp/msys64/ucrt64/include/winnt.h:9957:9: note: this is the location of the previous definition
9957 | #define KEY_WOW64_32KEY (0x0200)
| ^~~~~~~~~~~~~~~
utilsfuncswin.cpp:44:21: error: 'BOOL (* IsWow64Process)(HANDLE, PBOOL)' redeclared as different kind of entity
44 | LPFN_ISWOW64PROCESS IsWow64Process;
| ^~~~~~~~~~~~~~
In file included from D:/a/_temp/msys64/ucrt64/include/winbase.h:41,
from D:/a/_temp/msys64/ucrt64/include/windows.h:70:
D:/a/_temp/msys64/ucrt64/include/wow64apiset.h:44:29: note: previous declaration 'WINBOOL IsWow64Process(HANDLE, PBOOL)'
44 | WINBASEAPI WINBOOL WINAPI IsWow64Process (HANDLE hProcess, PBOOL Wow64Process);
| ^~~~~~~~~~~~~~
utilsfuncswin.cpp: In function 'BOOL is64bits()':
utilsfuncswin.cpp:48:20: error: assignment of function 'WINBOOL IsWow64Process(HANDLE, PBOOL)'
48 | IsWow64Process = (LPFN_ISWOW64PROCESS) GetProcAddress(GetModuleHandle(TEXT("kernel32")),"IsWow64Process");
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utilsfuncswin.cpp:50:72: warning: the address of 'WINBOOL IsWow64Process(HANDLE, PBOOL)' will never be NULL [-Waddress]
50 | if (IsWow64Process && !IsWow64Process(GetCurrentProcess(),&is64Bits)) {}
| ^
D:/a/_temp/msys64/ucrt64/include/wow64apiset.h:44:29: note: 'WINBOOL IsWow64Process(HANDLE, PBOOL)' declared here
44 | WINBASEAPI WINBOOL WINAPI IsWow64Process (HANDLE hProcess, PBOOL Wow64Process);
| ^~~~~~~~~~~~~~
Metadata
Metadata
Assignees
Labels
No labels