Tom Lane writes:
> @@ -55,6 +55,13 @@
> #include "postgres.h"
> #ifdef HAVE_LIMITS_H
> #include <limits.h>
> +#ifndef MAXINT
> +#define MAXINT INT_MAX
> +#endif
> +#else
> +#ifdef HAVE_VALUES_H
> +#include <values.h>
> +#endif
> #endif
> #include "fmgr.h"
> #include "utils/builtins.h"
>
> was dead code when it was installed. The CVS log says
> values.h patch from Alex Howansky
He claimed that the compilation failed for him in the files src/backend/optimizer/path/costsize.c
src/backend/utils/adt/date.c src/backend/utils/adt/float.c
because MAXINT was undefined (although neither date.c nor float.c used
MAXINT at all in 6.5).
This problem is gone and one should use INT_MAX anyway.
--
Peter Eisentraut Sernanders väg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden