Skip to content

Commit

Permalink
Set _WIN32_WINNT
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed May 6, 2024
1 parent 2c03113 commit f1973ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/openssl/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
#endif

#if defined(_WIN32)
#ifndef _WIN32_WINNT
// Some MinGW compilers do not set _WIN32_WINNT
// See: https://learn.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=msvc-170
// Support Windows 7 and later.
#define _WIN32_WINNT _WIN32_WINNT_WIN7
#endif
#define OPENSSL_WINDOWS
#endif

Expand Down

0 comments on commit f1973ea

Please sign in to comment.