Hello, trying to compile just simple oneliner file
#include <winternl.h>
cause compile warning:
$ i686-w64-mingw32-gcc -c -W -Wall -O2 test.c
In file included from test.c:1:
/usr/local/include/winternl.h:1168:14: warning: ‘RtlUnwind’ redeclared
without dllimport attribute: previous dllimport ignored [-Wattributes]
VOID NTAPI RtlUnwind (PVOID TargetFrame,PVOID TargetIp,PEXCEPTION_RECORD
ExceptionRecord,PVOID ReturnValue);
^~~~~~~~~
Seem that there is a conflict between declarations of RtlUnwind which is
in two different files and winternl.h throw windef.h includes also winnt.h:
$ git grep \\bRtlUnwind\\b mingw-w64-headers
mingw-w64-headers/include/winnt.h: NTSYSAPI VOID NTAPI RtlUnwind (PVOID
TargetFrame, PVOID TargetIp, PEXCEPTION_RECORD ExceptionRecord, PVOID
ReturnValue);
mingw-w64-headers/include/winternl.h: VOID NTAPI RtlUnwind (PVOID
TargetFrame,PVOID TargetIp,PEXCEPTION_RECORD ExceptionRecord,PVOID ReturnValue);
So maybe we should completely remove all declarations from winternl.h
which are also in winnt.h?
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public