ddk/wdm.h: Remove the inline definition of `InterlockedAdd64()`. The definition brought in indirectly by <intrin.h> renders this obsolete and it causes redefinition errors. It is also strange that no other `Interlocked*64` functions are ever defined in <wdm.h>. Signed-off-by: Liu Hao <lh_mouse@126.com>
diff --git a/mingw-w64-headers/ddk/include/ddk/wdm.h b/mingw-w64-headers/ddk/include/ddk/wdm.h index 6ac1690..f54e0a1 100644 --- a/mingw-w64-headers/ddk/include/ddk/wdm.h +++ b/mingw-w64-headers/ddk/include/ddk/wdm.h
@@ -369,19 +369,6 @@ #endif // _M_AMD64 -#if defined(_M_AMD64) && !defined(RC_INVOKED) && !defined(MIDL_PASS) -//#if !defined(_X86AMD64_) // FIXME: what's _X86AMD64_ used for? -FORCEINLINE -LONG64 -InterlockedAdd64( - IN OUT LONG64 volatile *Addend, - IN LONG64 Value) -{ - return InterlockedExchangeAdd64(Addend, Value) + Value; -} -//#endif -#endif - #endif /* !__INTERLOCKED_DECLARED */