diff --git a/dtool/Config.Irix.pp b/dtool/Config.Irix.pp index c01560fce3..52cb2033d9 100644 --- a/dtool/Config.Irix.pp +++ b/dtool/Config.Irix.pp @@ -42,6 +42,9 @@ // Do we have ? #define HAVE_ALLOCA_H 1 +// Do we have ? +#define HAVE_MINMAX_H + // Do we have ? #define HAVE_SYS_TYPES_H 1 diff --git a/dtool/Config.Linux.pp b/dtool/Config.Linux.pp index f33593d9a4..d492b35bd4 100644 --- a/dtool/Config.Linux.pp +++ b/dtool/Config.Linux.pp @@ -42,6 +42,9 @@ // Do we have ? #define HAVE_ALLOCA_H 1 +// Do we have ? +#define HAVE_MINMAX_H + // Do we have ? #define HAVE_SYS_TYPES_H 1 diff --git a/dtool/Config.Win32.pp b/dtool/Config.Win32.pp index 748945306f..31aec32d1f 100644 --- a/dtool/Config.Win32.pp +++ b/dtool/Config.Win32.pp @@ -42,6 +42,9 @@ // Do we have ? #define HAVE_ALLOCA_H +// Do we have ? +#define HAVE_MINMAX_H 1 + // Do we have ? #define HAVE_SYS_TYPES_H 1 diff --git a/dtool/LocalSetup.pp b/dtool/LocalSetup.pp index f3506cc238..00f06a1132 100644 --- a/dtool/LocalSetup.pp +++ b/dtool/LocalSetup.pp @@ -177,7 +177,11 @@ $[undef] HAVE_ALLOCA_H #endif /* Define if you have the header file. */ +#if $[HAVE_MINMAX_H] +$[define] HAVE_MINMAX_H 1 +#else $[undef] HAVE_MINMAX_H +#endif /* Define if you have the header file. */ #if $[HAVE_SSTREAM]