Skip to content

Commit

Permalink
Avoid NOMINMAX redefinition warnings (#6729)
Browse files Browse the repository at this point in the history
On MinGW, NOMINMAX is defined by default, so guard it to avoid
redefinition warnings.
  • Loading branch information
raedrizqie committed Jul 2, 2024
1 parent bd5b738 commit 4a81bdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/clang/utils/TableGen/TableGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

// HLSL Change Starts
#ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#endif

Expand Down
2 changes: 2 additions & 0 deletions utils/TableGen/TableGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@

// HLSL Change Starts
#ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#endif

Expand Down

0 comments on commit 4a81bdf

Please sign in to comment.