Skip to content
Snippets Groups Projects
Commit d90a426e authored by Marc G. Fournier's avatar Marc G. Fournier
Browse files

Linux defines MAXINT in values.h, which causes an error when compiling.

Wrap it in an #ifndef to prevent this
parent 632c44d8
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 @@ ...@@ -23,7 +23,9 @@
#else #else
# ifdef HAVE_LIMITS_H # ifdef HAVE_LIMITS_H
# include <limits.h> # include <limits.h>
# define MAXINT INT_MAX # ifndef MAXINT
# define MAXINT INT_MAX
# endif
# else # else
# ifdef HAVE_VALUES_H # ifdef HAVE_VALUES_H
# include <values.h> # include <values.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment