Commit 0a160699 authored by Marc G. Fournier's avatar Marc G. Fournier

Convert NEED_{RINT,CBRT,ISINF} to HAVE_* in prepration for configure...

parent 3ffd5694
...@@ -26,7 +26,7 @@ struct sembuf ...@@ -26,7 +26,7 @@ struct sembuf
}; };
#define USE_POSIX_TIME #define USE_POSIX_TIME
#define NEED_RINT #undef HAVE_RINT
#define MAXHOSTNAMELEN 12 /* where is the official definition of this? */ #define MAXHOSTNAMELEN 12 /* where is the official definition of this? */
#define MAXPATHLEN _MAX_PATH /* in winsock.h */ #define MAXPATHLEN _MAX_PATH /* in winsock.h */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.9 1997/01/18 17:36:02 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.10 1997/01/24 18:17:06 scrappy Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -68,28 +68,28 @@ ...@@ -68,28 +68,28 @@
extern double atof(const char *p); extern double atof(const char *p);
#endif #endif
#ifdef NEED_CBRT #ifndef HAVE_CBRT
# define cbrt my_cbrt # define cbrt my_cbrt
static double cbrt(double x); static double cbrt(double x);
#else /* NEED_CBRT */ #else
# if !defined(next) # if !defined(nextstep)
extern double cbrt(double x); extern double cbrt(double x);
# endif # endif
#endif /* NEED_CBRT */ #endif
#ifdef NEED_RINT #ifndef HAVE_RINT
#define rint my_rint # define rint my_rint
static double rint(double x); static double rint(double x);
#else /* NEED_RINT */ #else
extern double rint(double x); extern double rint(double x);
#endif /* NEED_RINT */ #endif
#ifdef NEED_ISINF #ifndef HAVE_ISINF
#define isinf my_isinf # define isinf my_isinf
static int isinf(double x); static int isinf(double x);
#else /* NEED_ISINF */ #else
extern int isinf(double x); extern int isinf(double x);
#endif /* NEED_ISINF */ #endif
#endif #endif
/* ========== USER I/O ROUTINES ========== */ /* ========== USER I/O ROUTINES ========== */
...@@ -1125,7 +1125,7 @@ long float84ge(float64 arg1, float32 arg2) ...@@ -1125,7 +1125,7 @@ long float84ge(float64 arg1, float32 arg2)
/* From "fdlibm" @ netlib.att.com */ /* From "fdlibm" @ netlib.att.com */
#ifdef NEED_RINT #ifndef HAVE_RINT
/* @(#)s_rint.c 5.1 93/09/24 */ /* @(#)s_rint.c 5.1 93/09/24 */
/* /*
...@@ -1211,9 +1211,9 @@ static double rint(double x) ...@@ -1211,9 +1211,9 @@ static double rint(double x)
return w-TWO52[sx]; return w-TWO52[sx];
} }
#endif /* NEED_RINT */ #endif /* !HAVE_RINT */
#ifdef NEED_CBRT #ifndef HAVE_CBRT
static static
double double
...@@ -1226,9 +1226,9 @@ double x; ...@@ -1226,9 +1226,9 @@ double x;
return(isneg ? -tmpres : tmpres); return(isneg ? -tmpres : tmpres);
} }
#endif /* NEED_CBRT */ #endif /* !HAVE_CBRT */
#ifdef NEED_ISINF #ifndef HAVE_ISINF
#if defined(aix) #if defined(aix)
#ifdef CLASS_CONFLICT #ifdef CLASS_CONFLICT
...@@ -1318,4 +1318,4 @@ double d; ...@@ -1318,4 +1318,4 @@ double d;
} }
#endif /* irix5 */ #endif /* irix5 */
#endif /* NEED_ISINF */ #endif /* !HAVE_ISINF */
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# undef HAVE_TERMIOS_H # undef HAVE_TERMIOS_H
# define CLASS_CONFLICT # define CLASS_CONFLICT
# define DISABLE_XOPEN_NLS # define DISABLE_XOPEN_NLS
# define NEED_ISINF # define HAVE_ISINF
# define NEED_UNION_SEMUN # define NEED_UNION_SEMUN
# define NEED_SYS_SELECT_H # define NEED_SYS_SELECT_H
# define HAVE_TZSET # define HAVE_TZSET
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define USE_POSIX_SIGNALS # define USE_POSIX_SIGNALS
# define DISABLE_XOPEN_NLS # define DISABLE_XOPEN_NLS
# define NEED_ISINF # define HAVE_ISINF
# define HAS_LONG_LONG # define HAS_LONG_LONG
# define NEED_UNION_SEMUN # define NEED_UNION_SEMUN
# define HAS_TEST_AND_SET # define HAS_TEST_AND_SET
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#if defined(BSD44_derived) #if defined(BSD44_derived)
# define HAVE_LIMITS_H # define HAVE_LIMITS_H
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define NEED_CBRT # define HAVE_CBRT
# define NEED_I386_TAS_ASM # define NEED_I386_TAS_ASM
# define HAS_TEST_AND_SET # define HAS_TEST_AND_SET
# if defined(__mips__) # if defined(__mips__)
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
# endif # endif
# define HAVE_LIMITS_H # define HAVE_LIMITS_H
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define NEED_CBRT # define HAVE_CBRT
# define HAS_TEST_AND_SET # define HAS_TEST_AND_SET
typedef unsigned char slock_t; typedef unsigned char slock_t;
#endif #endif
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
# define JMP_BUF # define JMP_BUF
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define HAVE_TZSET # define HAVE_TZSET
# define NEED_CBRT # define HAVE_CBRT
# define NEED_RINT # define HAVE_RINT
# define NEED_UNION_SEMUN # define NEED_UNION_SEMUN
# define HAS_TEST_AND_SET # define HAS_TEST_AND_SET
typedef struct { int sem[4]; } slock_t; typedef struct { int sem[4]; } slock_t;
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
# define HAVE_LIMITS_H # define HAVE_LIMITS_H
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define USE_POSIX_SIGNALS # define USE_POSIX_SIGNALS
# define NEED_ISINF # define HAVE_ISINF
# define NEED_RUSAGE # define NEED_RUSAGE
# define NO_EMPTY_STMTS # define NO_EMPTY_STMTS
# define HAVE_TZSET # define HAVE_TZSET
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
#if defined(irix5) #if defined(irix5)
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define USE_POSIX_SIGNALS # define USE_POSIX_SIGNALS
# define NEED_ISINF # define HAVE_ISINF
# define NO_EMPTY_STMTS # define NO_EMPTY_STMTS
# define NO_VFORK # define NO_VFORK
# define HAVE_TZSET # define HAVE_TZSET
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
# define JMP_BUF # define JMP_BUF
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define HAVE_TZSET # define HAVE_TZSET
# define NEED_CBRT # define HAVE_CBRT
# define NEED_I386_TAS_ASM # define NEED_I386_TAS_ASM
# define HAS_TEST_AND_SET # define HAS_TEST_AND_SET
typedef unsigned char slock_t; typedef unsigned char slock_t;
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
# define HAVE_LIMITS_H # define HAVE_LIMITS_H
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define USE_POSIX_SIGNALS # define USE_POSIX_SIGNALS
# define NEED_ISINF # define HAVE_ISINF
# define NEED_RUSAGE # define NEED_RUSAGE
# define NO_EMPTY_STMTS # define NO_EMPTY_STMTS
# define USE_POSIX_TIME # define USE_POSIX_TIME
...@@ -179,7 +179,7 @@ typedef unsigned char slock_t; ...@@ -179,7 +179,7 @@ typedef unsigned char slock_t;
#if defined(svr4) #if defined(svr4)
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define USE_POSIX_SIGNALS # define USE_POSIX_SIGNALS
# define NEED_ISINF # define HAVE_ISINF
# define NEED_RUSAGE # define NEED_RUSAGE
# define NO_EMPTY_STMTS # define NO_EMPTY_STMTS
# define HAVE_TZSET # define HAVE_TZSET
...@@ -195,15 +195,15 @@ typedef unsigned char slock_t; ...@@ -195,15 +195,15 @@ typedef unsigned char slock_t;
# define NOFILE 100 # define NOFILE 100
# define NEED_UNION_SEMUN # define NEED_UNION_SEMUN
# define HAVE_TZSET # define HAVE_TZSET
# define NEED_CBRT # define HAVE_CBRT
# define NEED_ISINF # define HAVE_ISINF
# ifndef MAXPATHLEN # ifndef MAXPATHLEN
# define MAXPATHLEN 250 # define MAXPATHLEN 250
# endif # endif
#endif /* WIN32 */ #endif /* WIN32 */
#if defined(ultrix4) #if defined(ultrix4)
# define NEED_ISINF # define HAVE_ISINF
# define USE_POSIX_TIME # define USE_POSIX_TIME
# define NEED_UNION_SEMUN # define NEED_UNION_SEMUN
# define NEED_STRDUP # define NEED_STRDUP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment