Skip to content

Commit

Permalink
MSVC: Fix warning C4005: 'NOMINMAX': macro redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 5, 2024
1 parent dd71f4d commit 561e521
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Fem/Gui/PreCompiled.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@

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

Expand Down
7 changes: 4 additions & 3 deletions src/Mod/PartDesign/Gui/PreCompiled.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
#ifdef _PreComp_

#ifdef FC_OS_WIN32
# undef NOMINMAX
# define NOMINMAX
# include <windows.h>
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#endif

// Boost
Expand Down
2 changes: 2 additions & 0 deletions src/Mod/Sketcher/Gui/PreCompiled.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
#include <boost/math/special_functions/fpclassify.hpp>

#ifdef FC_OS_WIN32
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#endif

Expand Down
4 changes: 3 additions & 1 deletion src/Mod/TechDraw/Gui/PreCompiled.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
#endif

#ifdef FC_OS_WIN32
# define NOMINMAX
#ifndef NOMINMAX
#define NOMINMAX
#endif
#endif

#ifdef _PreComp_
Expand Down

0 comments on commit 561e521

Please sign in to comment.