Skip to content

Commit

Permalink
Remove unnecessary WIN* defines.
Browse files Browse the repository at this point in the history
We keep WINVER and _WIN32_WINNT because different versions of mingw-w64 have different defaults.

Fixes #198.
  • Loading branch information
Morilli authored and Screwtapello committed Nov 13, 2023
1 parent db3a17b commit 993368d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nall/windows/guard.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,15 @@

#undef UNICODE
#undef WINVER
#undef WIN32_LEAN_AND_LEAN
#undef WIN32_LEAN_AND_MEAN
#undef _WIN32_WINNT
#undef _WIN32_IE
#undef __MSVCRT_VERSION__
#undef NOMINMAX
#undef PATH_MAX

#define UNICODE
#define WINVER 0x0601
#define WIN32_LEAN_AND_MEAN
#define _WIN32_WINNT WINVER
#define _WIN32_IE WINVER
#define __MSVCRT_VERSION__ WINVER
#define NOMINMAX
#define PATH_MAX 260

Expand Down

0 comments on commit 993368d

Please sign in to comment.