From: Marc G. Fournier Date: Sun, 26 Jan 1997 16:06:42 +0000 (+0000) Subject: Linux defines MAXINT in values.h, which causes an error when compiling. X-Git-Tag: REL6_1~628 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d90a426e35a2b92c78f1a2156a1e9aa3967ab041;p=postgresql Linux defines MAXINT in values.h, which causes an error when compiling. Wrap it in an #ifndef to prevent this --- diff --git a/src/backend/optimizer/path/costsize.c b/src/backend/optimizer/path/costsize.c index df80889a2c..82553ccf99 100644 --- a/src/backend/optimizer/path/costsize.c +++ b/src/backend/optimizer/path/costsize.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.11 1997/01/24 18:00:10 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.12 1997/01/26 16:06:42 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -23,7 +23,9 @@ #else # ifdef HAVE_LIMITS_H # include -# define MAXINT INT_MAX +# ifndef MAXINT +# define MAXINT INT_MAX +# endif # else # ifdef HAVE_VALUES_H # include