diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-01 16:46:06 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-01 16:46:06 +0000 |
commit | 38a412ec392bdbca51af65927395eb4111196bfc (patch) | |
tree | 968a9bc82de39c8ec51fce83edc54467de4a1205 /src | |
parent | ec506c12cdf856fde1fff58e429f58df81b2370a (diff) | |
download | postgresql-38a412ec392bdbca51af65927395eb4111196bfc.tar.gz postgresql-38a412ec392bdbca51af65927395eb4111196bfc.zip |
Fix compile warning.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/ecpg/pgtypeslib/dt.h | 4 | ||||
-rw-r--r-- | src/interfaces/ecpg/pgtypeslib/dt_common.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/pgtypeslib/dt.h b/src/interfaces/ecpg/pgtypeslib/dt.h index a4d6f044a91..28a64b48599 100644 --- a/src/interfaces/ecpg/pgtypeslib/dt.h +++ b/src/interfaces/ecpg/pgtypeslib/dt.h @@ -1,6 +1,8 @@ #ifndef DT_H #define DT_H +#include <pgtypes_timestamp.h> + #define MAXTZLEN 10 #ifdef HAVE_INT64_TIMESTAMP @@ -297,6 +299,8 @@ int EncodeTimeOnly(struct tm * tm, fsec_t fsec, int *tzp, int style, char *str); int EncodeDateTime(struct tm * tm, fsec_t fsec, int *tzp, char **tzn, int style, char *str, bool); int EncodeInterval(struct tm * tm, fsec_t fsec, int style, char *str); +int tm2timestamp(struct tm *, fsec_t, int *, Timestamp *); + int DecodeUnits(int field, char *lowtoken, int *val); bool ClearDateCache(bool, bool, bool); diff --git a/src/interfaces/ecpg/pgtypeslib/dt_common.c b/src/interfaces/ecpg/pgtypeslib/dt_common.c index 98761f59414..89f50fe9a9a 100644 --- a/src/interfaces/ecpg/pgtypeslib/dt_common.c +++ b/src/interfaces/ecpg/pgtypeslib/dt_common.c @@ -13,8 +13,6 @@ static int day_tab[2][13] = { {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0}}; typedef long AbsoluteTime; - -int tm2timestamp(struct tm *, fsec_t, int *, Timestamp *); #define ABS_SIGNBIT ((char) 0200) #define POS(n) (n) |