]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Explicitly #include <synchapi.h> is unnecessary
authorKelvin Lee <kiyolee@gmail.com>
Tue, 14 Sep 2021 07:55:50 +0000 (17:55 +1000)
committerTomas Mraz <tomas@openssl.org>
Thu, 23 Sep 2021 12:07:18 +0000 (14:07 +0200)
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)

crypto/threads_win.c

index fdc32a2a5432b66810a22fa90035fdeb83e118ad..d65b3826d93a274adf9cbd67cb9524744031ae2b 100644 (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