Skip to content

Commit

Permalink
Win: [skip ci] check if NOMINMAX is already defined before setting it
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 11, 2020
1 parent 1b8f474 commit b7f9e35
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App/PreCompiled.h
Expand Up @@ -39,8 +39,10 @@

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

#ifdef _PreComp_

Expand Down
2 changes: 2 additions & 0 deletions src/Base/PreCompiled.h
Expand Up @@ -46,7 +46,9 @@
#ifdef FC_OS_WIN32
#include <direct.h>
#define WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#include <crtdbg.h>
#include <shellapi.h>
Expand Down
2 changes: 2 additions & 0 deletions src/Gui/PreCompiled.h
Expand Up @@ -28,8 +28,10 @@

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

// here get the warnings of too long specifiers disabled (needed for VC6)
#ifdef _MSC_VER
Expand Down
2 changes: 2 additions & 0 deletions src/Mod/Inspection/Gui/PreCompiled.h
Expand Up @@ -40,7 +40,9 @@
#endif

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

#ifdef _MSC_VER
Expand Down
2 changes: 2 additions & 0 deletions src/Mod/Measure/App/PreCompiled.h
Expand Up @@ -39,8 +39,10 @@

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

#ifdef _PreComp_

Expand Down
2 changes: 2 additions & 0 deletions src/Mod/Mesh/Gui/PreCompiled.h
Expand Up @@ -86,7 +86,9 @@
#endif

#elif defined(FC_OS_WIN32)
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#endif //_PreComp_

Expand Down
2 changes: 2 additions & 0 deletions src/Mod/Part/App/PreCompiled.h
Expand Up @@ -96,7 +96,9 @@

#elif defined(FC_OS_WIN32)
#define WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#endif //_PreComp_

Expand Down
2 changes: 2 additions & 0 deletions src/Mod/Part/Gui/PreCompiled.h
Expand Up @@ -36,7 +36,9 @@
#endif

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

// here get the warnings of too long specifiers disabled (needed for VC6)
Expand Down
2 changes: 2 additions & 0 deletions src/Mod/Points/Gui/PreCompiled.h
Expand Up @@ -36,7 +36,9 @@
#endif

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

#ifdef _PreComp_
Expand Down
2 changes: 2 additions & 0 deletions src/Mod/Sketcher/App/PreCompiled.h
Expand Up @@ -86,7 +86,9 @@
#include <Python.h>

#elif defined(FC_OS_WIN32)
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#endif // _PreComp_
#endif
Expand Down

0 comments on commit b7f9e35

Please sign in to comment.