mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-23 09:54:39 +08:00
headers: Fix compile warning: FACILITY_USERMODE_FILTER_MANAGER redefined
Warning is: In file included from mingw-w64-headers/include/winerror.h:4920, from mingw-w64-headers/include/winbase.h:2817, from mingw-w64-headers/include/windows.h:70, from intrincs/RtlSecureZeroMemory.c:2: mingw-w64-headers/include/fltwinerror.h:12: warning: "FACILITY_USERMODE_FILTER_MANAGER" redefined #define FACILITY_USERMODE_FILTER_MANAGER 0x1f In file included from mingw-w64-headers/include/winbase.h:2817, from mingw-w64-headers/include/windows.h:70, from intrincs/RtlSecureZeroMemory.c:2: mingw-w64-headers/include/winerror.h:38: note: this is the location of the previous definition #define FACILITY_USERMODE_FILTER_MANAGER 31 WinSDK10 header file fltWinError.h contains #ifndef guard. Do same. Signed-off-by: LIU Hao <lh_mouse@126.com>
This commit is contained in:
parent
c228e5cc20
commit
8106880ee5
@ -9,7 +9,9 @@
|
||||
#if NTDDI_VERSION < NTDDI_VISTA || defined (__IN__WINERROR_)
|
||||
|
||||
#define FILTER_HRESULT_FROM_FLT_NTSTATUS(x) (NT_ASSERT((x & 0xfff0000) == 0x001c0000),(HRESULT) (((x) & 0x8000ffff) | (FACILITY_USERMODE_FILTER_MANAGER << 16)))
|
||||
#ifndef FACILITY_USERMODE_FILTER_MANAGER
|
||||
#define FACILITY_USERMODE_FILTER_MANAGER 0x1f
|
||||
#endif
|
||||
|
||||
#define ERROR_FLT_IO_COMPLETE ((HRESULT)0x001f0001)
|
||||
#define ERROR_FLT_NO_HANDLER_DEFINED ((HRESULT)0x801f0001)
|
||||
|
Loading…
Reference in New Issue
Block a user