diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-03-16 19:05:00 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-03-16 19:05:00 +0000 |
commit | 7cd394dc431050c5f10761418730a2f3d4bdd5f2 (patch) | |
tree | a53c49dc404108bac793dd165ac7119217dd6e4c /src | |
parent | ea58f28ee8c0d090557ff0079ef937e3e26b1ec6 (diff) | |
download | postgresql-7cd394dc431050c5f10761418730a2f3d4bdd5f2.tar.gz postgresql-7cd394dc431050c5f10761418730a2f3d4bdd5f2.zip |
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] Patches for 970316 compilation
I made a small pre-emptive change in the new datetime code to eliminate
calls to infnan(). Hopefully this will make Solaris (and probably other
non-GNUlib) systems happier. Didn't find fe-connect.h in the 970316
distribution, so made one up. Also, one of the test routines needs an
update for the geo-decls.h -> geo_decls.h name change.
Patches appear below...
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/adt/dt.c | 8 | ||||
-rw-r--r-- | src/interfaces/libpq++/examples/testlibpq5.cc | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/utils/adt/dt.c b/src/backend/utils/adt/dt.c index 754c791e82d..815dc9915a6 100644 --- a/src/backend/utils/adt/dt.c +++ b/src/backend/utils/adt/dt.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.5 1997/03/16 05:32:03 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.6 1997/03/16 19:03:20 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -39,15 +39,15 @@ extern char *tzname[2]; extern long int timezone; extern int daylight; -#define JTIME_INVALID (infnan(0)) +#define JTIME_INVALID (NAN) #define DATETIME_INVALID(j) {*j = JTIME_INVALID;} #define DATETIME_IS_INVALID(j) (isnan(*j)) -#define JTIME_NOBEGIN (infnan(-ERANGE)) +#define JTIME_NOBEGIN (-HUGE_VAL) #define DATETIME_NOBEGIN(j) {*j = JTIME_NOBEGIN;} #define DATETIME_IS_NOBEGIN(j) (*j == JTIME_NOBEGIN) -#define JTIME_NOEND (infnan(ERANGE)) +#define JTIME_NOEND (HUGE_VAL) #define DATETIME_NOEND(j) {*j = JTIME_NOEND;} #define DATETIME_IS_NOEND(j) (*j == JTIME_NOEND) diff --git a/src/interfaces/libpq++/examples/testlibpq5.cc b/src/interfaces/libpq++/examples/testlibpq5.cc index 8c299fe73be..1b6d91bbf4c 100644 --- a/src/interfaces/libpq++/examples/testlibpq5.cc +++ b/src/interfaces/libpq++/examples/testlibpq5.cc @@ -31,7 +31,7 @@ tuple 1: got #include <stdlib.h> extern "C" { #include "postgres.h" // for Postgres types -#include "utils/geo-decls.h" // for the POLYGON type +#include "utils/geo_decls.h" // for the POLYGON type } main() |