Skip to content

Commit

Permalink
Fix macro redefinition warning when compiling with mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackMark29A committed Sep 18, 2024
1 parent efe28c7 commit aab933e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/libenvpp_environment_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

#include <libenvpp/detail/environment.hpp>

#ifndef NOMINMAX
#define NOMINMAX
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>

#include <array>
Expand Down

0 comments on commit aab933e

Please sign in to comment.