From 3ffd5694ddb484ab2907d43b8b3896ecd9f0320a Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Fri, 24 Jan 1997 18:00:48 +0000 Subject: [PATCH] Replace occurances of USE_{LIMITS,VALUES}_H with HAVE_* in preparation for switch over to configure --- src/backend/optimizer/path/costsize.c | 6 +++--- src/backend/postmaster/postmaster.c | 6 +++--- src/backend/utils/Gen_fmgrtab.sh | 8 ++++---- src/include/config.h | 16 +++++++--------- 4 files changed, 17 insertions(+), 19 deletions(-) diff --git a/src/backend/optimizer/path/costsize.c b/src/backend/optimizer/path/costsize.c index 5c03305b99..df80889a2c 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.10 1997/01/22 04:41:45 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.11 1997/01/24 18:00:10 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -21,11 +21,11 @@ # include # define MAXINT INT_MAX #else -# if defined(USE_LIMITS_H) +# ifdef HAVE_LIMITS_H # include # define MAXINT INT_MAX # else -# ifdef USE_VALUES_H +# ifdef HAVE_VALUES_H # include # endif # endif diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 9d2e103896..abde224531 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.32 1997/01/22 04:45:45 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.33 1997/01/24 18:00:27 scrappy Exp $ * * NOTES * @@ -53,12 +53,12 @@ #include /* for umask */ #include #include -#if defined(USE_LIMITS_H) +#ifdef HAVE_LIMITS_H # include # define MAXINT INT_MAX #else # include -#endif /* !USE_LIMITS_H */ +#endif #include #include diff --git a/src/backend/utils/Gen_fmgrtab.sh b/src/backend/utils/Gen_fmgrtab.sh index 4ddf1f798f..c88beeb590 100644 --- a/src/backend/utils/Gen_fmgrtab.sh +++ b/src/backend/utils/Gen_fmgrtab.sh @@ -8,7 +8,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.12 1997/01/22 04:56:34 scrappy Exp $ +# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh,v 1.13 1997/01/24 17:59:58 scrappy Exp $ # # NOTES # Passes any -D options on to cpp prior to generating the list @@ -81,7 +81,7 @@ cat > $HFILE < $TABCFILE < $TABCFILE < #else -# if defined(USE_LIMITS_H) +# ifdef HAVE_LIMITS_H # include # define MAXINT INT_MAX # else diff --git a/src/include/config.h b/src/include/config.h index 67a40a95f4..4ad148373e 100644 --- a/src/include/config.h +++ b/src/include/config.h @@ -8,10 +8,7 @@ #define BLCKSZ 8192 -#if !defined(nextstep) -#define USE_VALUES_H -#endif - +#define HAVE_VALUES_H #define HAVE_MEMMOVE #define HAVE_TERMIOS_H @@ -41,7 +38,7 @@ #endif #if defined(BSD44_derived) -# define USE_LIMITS_H +# define HAVE_LIMITS_H # define USE_POSIX_TIME # define NEED_CBRT # define NEED_I386_TAS_ASM @@ -62,7 +59,7 @@ # if defined(PRE_BSDI_2_1) # define NEED_UNION_SEMUN # endif -# define USE_LIMITS_H +# define HAVE_LIMITS_H # define USE_POSIX_TIME # define NEED_CBRT # define HAS_TEST_AND_SET @@ -88,7 +85,7 @@ #endif #if defined(i386_solaris) -# define USE_LIMITS_H +# define HAVE_LIMITS_H # define USE_POSIX_TIME # define USE_POSIX_SIGNALS # define NEED_ISINF @@ -131,6 +128,7 @@ #endif #if defined(nextstep) +# undef HAVE_VALUES_H # include # if defined(__STRICT_ANSI__) # define isascii(c) ((unsigned)(c)<=0177) @@ -148,7 +146,7 @@ # define NEED_SIG_JMP # endif -# define USE_LIMITS_H +# define HAVE_LIMITS_H # define JMP_BUF # define NO_WAITPID typedef struct mutex slock_t; @@ -159,7 +157,7 @@ #endif #if defined(sparc_solaris) -# define USE_LIMITS_H +# define HAVE_LIMITS_H # define USE_POSIX_TIME # define USE_POSIX_SIGNALS # define NEED_ISINF -- 2.40.0