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...
This commit is contained in:
Marc G. Fournier 1997-03-16 19:05:00 +00:00
parent ea58f28ee8
commit 7cd394dc43
2 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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()