Skip to content

Commit

Permalink
Windows: fix build failure for x86/x64 with newer Visual Studio that …
Browse files Browse the repository at this point in the history
…use Windows 10/11 SDK

We set Windows 8 as minimum API support fir Visual Studio 2015 and newer.

Closes #1398
  • Loading branch information
idrassi committed Aug 13, 2024
1 parent 4f60394 commit c167799
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Common/Tcdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,13 @@ extern BOOLEAN VC_KeAreAllApcsDisabled (VOID);
#ifdef _M_ARM64
# define _WIN32_WINNT 0x0A00
#else
# define _WIN32_WINNT 0x0601 /* Does not apply to the driver */
// for Visual Studio 2015 and later, set minimum Windows version to Windows 8
// for old versions of Visual Studio, set minimum Windows version to Windows 7
#if _MSC_VER >= 1900
# define _WIN32_WINNT 0x0602
#else
# define _WIN32_WINNT 0x0601
#endif
#endif
#endif

Expand Down

0 comments on commit c167799

Please sign in to comment.