mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
#4020 System : Define NOMINMAX before include of windows.h
This commit is contained in:
1 parent
fc133c4475
commit
1a7de264ca
3 files changed
+12
No files matched your search
@@ -23,6 +23,10 @@
|
||||
#ifdef WIN32
|
||||
#pragma warning (push)
|
||||
#pragma warning (disable: 4668)
|
||||
// Define this one to tell windows.h to not define min() and max() as macros
|
||||
#if defined WIN32 && !defined NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#pragma warning (pop)
|
||||
#else
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
#include <QStringList>
|
||||
|
||||
#ifdef _WIN32
|
||||
// Define this one to tell windows.h to not define min() and max() as macros
|
||||
#if defined WIN32 && !defined NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#include "windows.h"
|
||||
#include "psapi.h"
|
||||
#elif defined (__linux__)
|
||||
|
||||
@@ -369,6 +369,10 @@ namespace caf {
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (push)
|
||||
#pragma warning (disable: 4668)
|
||||
// Define this one to tell windows.h to not define min() and max() as macros
|
||||
#if defined WIN32 && !defined NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#pragma warning (pop)
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user