Skip to content
Snippets Groups Projects
Commit dbe288e3 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Make sure "min" and "max" macros are never defined under Windows, this can...

Make sure "min" and "max" macros are never defined under Windows, this can create conflicts with "std::min" and "std::max"
parent 572f521b
No related branches found
No related tags found
No related merge requests found
......@@ -254,6 +254,7 @@ Number of online processors is not implemented and returns -1, since
Windows kernel32 |GetSystemInfo| call is too complicated.
@<|sysconf| Win32 implementation@>=
#define NOMINMAX // Do not define "min" and "max" macros
#include <windows.h>
#define _SC_PAGESIZE 1
......
......@@ -18,6 +18,7 @@
*/
#if defined(_WIN32) || defined(__CYGWIN32__)
# define NOMINMAX // Do not define "min" and "max" macros
# include <windows.h>
#else
# include <dlfcn.h> // unix/linux DLL (.so) handling routines
......
......@@ -18,6 +18,7 @@
*/
#if defined(_WIN32) || defined(__CYGWIN32__)
# define NOMINMAX // Do not define "min" and "max" macros
# include <windows.h>
#else
# include <dlfcn.h> // unix/linux DLL (.so) handling routines
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment