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
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment