Make sure "min" and "max" macros are never defined under Windows, this can create conflicts with "std::min" and "std::max"
parent
572f521baf
commit
dbe288e3ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue