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

Commit 38a412e

Browse files
committed
Fix compile warning.
1 parent ec506c1 commit 38a412e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/interfaces/ecpg/pgtypeslib/dt.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef DT_H
22
#define DT_H
33

4+
#include <pgtypes_timestamp.h>
5+
46
#define MAXTZLEN 10
57

68
#ifdef HAVE_INT64_TIMESTAMP
@@ -297,6 +299,8 @@ int EncodeTimeOnly(struct tm * tm, fsec_t fsec, int *tzp, int style, char *str);
297299
int EncodeDateTime(struct tm * tm, fsec_t fsec, int *tzp, char **tzn, int style, char *str, bool);
298300
int EncodeInterval(struct tm * tm, fsec_t fsec, int style, char *str);
299301

302+
int tm2timestamp(struct tm *, fsec_t, int *, Timestamp *);
303+
300304
int DecodeUnits(int field, char *lowtoken, int *val);
301305
bool ClearDateCache(bool, bool, bool);
302306

src/interfaces/ecpg/pgtypeslib/dt_common.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ static int day_tab[2][13] = {
1313
{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0}};
1414

1515
typedef long AbsoluteTime;
16-
17-
int tm2timestamp(struct tm *, fsec_t, int *, Timestamp *);
1816

1917
#define ABS_SIGNBIT ((char) 0200)
2018
#define POS(n) (n)

0 commit comments

Comments
 (0)