Warning is: In file included from misc/delay-f.c:11: mingw-w64-headers/include/delayimp.h:64: warning: "FACILITY_VISUALCPP" redefined #define FACILITY_VISUALCPP ((LONG)0x6d)
In file included from mingw-w64-headers/include/winbase.h:2817, from mingw-w64-headers/include/windows.h:70, from misc/delay-f.c:10: mingw-w64-headers/include/winerror.h:88: note: this is the location of the previous definition #define FACILITY_VISUALCPP 109 WinSDK10 delayimp.h contains #ifndef guard for FACILITY_VISUALCPP. Do same. --- mingw-w64-headers/include/delayimp.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mingw-w64-headers/include/delayimp.h b/mingw-w64-headers/include/delayimp.h index 637b9aa654f7..61980ee7c54c 100644 --- a/mingw-w64-headers/include/delayimp.h +++ b/mingw-w64-headers/include/delayimp.h @@ -61,7 +61,9 @@ typedef FARPROC (WINAPI *PfnDliHook)(unsigned dliNotify,PDelayLoadInfo pdli); ExternC WINBOOL WINAPI __FUnloadDelayLoadedDLL2(LPCSTR szDll); ExternC HRESULT WINAPI __HrLoadAllImportsForDll(LPCSTR szDll); +#ifndef FACILITY_VISUALCPP #define FACILITY_VISUALCPP ((LONG)0x6d) +#endif #define VcppException(sev,err) ((sev) | (FACILITY_VISUALCPP<<16) | err) ExternC PfnDliHook __pfnDliNotifyHook2; -- 2.20.1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public