diff options
author | Kelvin Lee <kiyolee@gmail.com> | 2021-09-14 17:55:50 +1000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-09-23 14:13:37 +0200 |
commit | b3242ca622ef3da34ebb7b78b1f82cd5f0b516e7 (patch) | |
tree | eb44ea72632673de808fde42bc2695c913dd5457 /crypto | |
parent | c6769fd4b6483fa0428300722d494251dcbe7144 (diff) |
Explicitly #include <synchapi.h> is unnecessary
The header is already included by <windows.h> for WinSDK 8 or later.
Actually this causes problem for WinSDK 7.1 (defaults for VS2010) that
it does not have this header while SRW Locks do exist for Windows 7.
CLA: trivial
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16603)
(cherry picked from commit eeb612021e220de734e1ff08499f42bb962c3916)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/threads_win.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/threads_win.c b/crypto/threads_win.c index fdc32a2a54..d65b3826d9 100644 --- a/crypto/threads_win.c +++ b/crypto/threads_win.c @@ -10,7 +10,6 @@ #if defined(_WIN32) # include <windows.h> # if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x600 -# include <synchapi.h> # define USE_RWLOCK # endif #endif |