diff options
author | FrankHB <frankhb1989@gmail.com> | 2023-06-17 02:25:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 21:25:01 +0300 |
commit | 5b9ccaf104cc1054d4f8f17bc8a4b8dc949e5527 (patch) | |
tree | 24acf5eef467386fd0c3b4e0c5493d60df100dcb /examples/main | |
parent | 9cbf50c041a525d781c7764f493a5443924e4e38 (diff) |
Fixed possible macro redefinition (#1892)
MinGW libstdc++ may define `NOMINMAX` unconditionally. This fixes the case when it is already defined.
Diffstat (limited to 'examples/main')
-rw-r--r-- | examples/main/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/main/main.cpp b/examples/main/main.cpp index ef9e75f..a051fcb 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -23,7 +23,9 @@ #include <unistd.h> #elif defined (_WIN32) #define WIN32_LEAN_AND_MEAN +#ifndef NOMINMAX #define NOMINMAX +#endif #include <windows.h> #include <signal.h> #endif |