Make sure "min" and "max" macros are never defined under Windows, this can create conflicts with "std::min" and "std::max"

time-shift
Sébastien Villemot 2010-10-29 12:01:47 +02:00
parent 572f521baf
commit dbe288e3ca
3 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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