提交 7cd394dc 编写于 作者: M Marc G. Fournier

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...
上级 ea58f28e
......@@ -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)
......
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册