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)
This commit is contained in:
Kelvin Lee 2021-09-14 17:55:50 +10:00 committed by Tomas Mraz
parent 415e6ac804
commit eeb612021e

View File

@ -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