Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7cd394d

Browse files
committed
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...
1 parent ea58f28 commit 7cd394d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/backend/utils/adt/dt.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.5 1997/03/16 05:32:03 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.6 1997/03/16 19:03:20 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -39,15 +39,15 @@ extern char *tzname[2];
3939
extern long int timezone;
4040
extern int daylight;
4141

42-
#define JTIME_INVALID (infnan(0))
42+
#define JTIME_INVALID (NAN)
4343
#define DATETIME_INVALID(j) {*j = JTIME_INVALID;}
4444
#define DATETIME_IS_INVALID(j) (isnan(*j))
4545

46-
#define JTIME_NOBEGIN (infnan(-ERANGE))
46+
#define JTIME_NOBEGIN (-HUGE_VAL)
4747
#define DATETIME_NOBEGIN(j) {*j = JTIME_NOBEGIN;}
4848
#define DATETIME_IS_NOBEGIN(j) (*j == JTIME_NOBEGIN)
4949

50-
#define JTIME_NOEND (infnan(ERANGE))
50+
#define JTIME_NOEND (HUGE_VAL)
5151
#define DATETIME_NOEND(j) {*j = JTIME_NOEND;}
5252
#define DATETIME_IS_NOEND(j) (*j == JTIME_NOEND)
5353

src/interfaces/libpq++/examples/testlibpq5.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tuple 1: got
3131
#include <stdlib.h>
3232
extern "C" {
3333
#include "postgres.h" // for Postgres types
34-
#include "utils/geo-decls.h" // for the POLYGON type
34+
#include "utils/geo_decls.h" // for the POLYGON type
3535
}
3636

3737
main()

0 commit comments

Comments
 (0)