commit | 68d0e7d551d2e2a5b8a15bdca3f8d15fc097ed01 | [log] [tgz] |
---|---|---|
author | Steve Lhomme <robux4@ycbcr.xyz> | Fri Jun 05 14:17:42 2020 +0200 |
committer | Liu Hao <lh_mouse@126.com> | Fri Jun 05 21:53:30 2020 +0800 |
tree | 0b01283f68522536931cfd0a83a249e83e2400e2 | |
parent | 4f9a809e8f5190319f092f284680a0435e173408 [diff] |
crt: remove WaitOnAddress/WakeByAddressXXX from kernel32 It may have been there in the past but on my current Windows 10 it's not there anymore. They do exist in api-ms-win-core-synch-l1-2-*.dll This contradicts the official documentation: https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-waitonaddress https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-wakebyaddressall https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-wakebyaddresssingle The proper way to use them is to link with synchronization.lib as the doc says. Signed-off-by: Liu Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/lib-common/kernel32.def.in b/mingw-w64-crt/lib-common/kernel32.def.in index 4ed3fe0..ca13080 100644 --- a/mingw-w64-crt/lib-common/kernel32.def.in +++ b/mingw-w64-crt/lib-common/kernel32.def.in
@@ -1568,10 +1568,14 @@ WaitForThreadpoolWorkCallbacks WaitNamedPipeA WaitNamedPipeW -WaitOnAddress WakeAllConditionVariable -WakeByAddressSingle -WakeByAddressAll +; MSDN says it's in Kernel32.dll but it's not. +; Link with libsynchronization.a instead. +; Commented out for compatibility with older +; versions of Windows. +;WaitOnAddress +;WakeByAddressSingle +;WakeByAddressAll WakeConditionVariable WerGetFlags WerGetFlagsWorker