mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
dtoolbase: Avoid Windows's min/max macros
This commit is contained in:
parent
b7f8ddfe35
commit
4754ba524c
@ -60,6 +60,12 @@
|
|||||||
#pragma warning (disable : 4577)
|
#pragma warning (disable : 4577)
|
||||||
#endif /* WIN32_VC */
|
#endif /* WIN32_VC */
|
||||||
|
|
||||||
|
/* Windows likes to define min() and max() macros, which will conflict with
|
||||||
|
std::min() and std::max() respectively, unless we do this: */
|
||||||
|
#ifdef WIN32
|
||||||
|
#define NOMINMAX
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __has_builtin
|
#ifndef __has_builtin
|
||||||
#define __has_builtin(x) 0
|
#define __has_builtin(x) 0
|
||||||
#endif
|
#endif
|
||||||
@ -198,10 +204,6 @@ typedef struct _object PyObject;
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PHAVE_MINMAX_H
|
|
||||||
#include <minmax.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PHAVE_SYS_TIME_H
|
#ifdef PHAVE_SYS_TIME_H
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -2310,7 +2310,6 @@ DTOOL_CONFIG=[
|
|||||||
("PHAVE_SYS_MALLOC_H", 'UNDEF', 'UNDEF'),
|
("PHAVE_SYS_MALLOC_H", 'UNDEF', 'UNDEF'),
|
||||||
("PHAVE_ALLOCA_H", 'UNDEF', '1'),
|
("PHAVE_ALLOCA_H", 'UNDEF', '1'),
|
||||||
("PHAVE_LOCALE_H", 'UNDEF', '1'),
|
("PHAVE_LOCALE_H", 'UNDEF', '1'),
|
||||||
("PHAVE_MINMAX_H", '1', 'UNDEF'),
|
|
||||||
("PHAVE_SSTREAM", '1', '1'),
|
("PHAVE_SSTREAM", '1', '1'),
|
||||||
("PHAVE_NEW", '1', '1'),
|
("PHAVE_NEW", '1', '1'),
|
||||||
("PHAVE_SYS_TYPES_H", '1', '1'),
|
("PHAVE_SYS_TYPES_H", '1', '1'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user