-
Notifications
You must be signed in to change notification settings - Fork 840
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forcing the _WIN32_WINNT when the environment is already forcing a value results in a lot of warning. If the user compiles for a higher version of Windows, we don't need to force compilation for Vista.
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* Copyright © 2023 Steve Lhomme */ | ||
/* SPDX-License-Identifier: ISC */ | ||
#include <windows.h> | ||
#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600 /* _WIN32_WINNT_VISTA */ | ||
#error NOPE | ||
#endif | ||
int main(void) | ||
{ | ||
return 0; | ||
} |