Skip to content

Commit 6f30d56

Browse files
author
Michael Meskes
committed
The remaining files ...
1 parent 8d8b940 commit 6f30d56

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

src/interfaces/ecpg/pgtypeslib/datetime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#include <stdio.h>
77
#include <string.h>
88

9-
#include "dt.h"
109
#include "extern.h"
10+
#include "dt.h"
1111
#include "pgtypes_error.h"
1212
#include "pgtypes_date.h"
1313

src/interfaces/ecpg/pgtypeslib/dt.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@ typedef double fsec_t;
1515
#define JROUND(j) (rint(((double) (j))*TIME_PREC_INV)/TIME_PREC_INV)
1616
#endif
1717

18-
#ifndef bool
19-
#define bool char
20-
#endif /* ndef bool */
21-
22-
#ifndef FALSE
23-
#define FALSE 0
24-
#endif /* FALSE */
25-
26-
#ifndef TRUE
27-
#define TRUE 1
28-
#endif /* TRUE */
29-
3018
#define USE_POSTGRES_DATES 0
3119
#define USE_ISO_DATES 1
3220
#define USE_SQL_DATES 2

src/interfaces/ecpg/pgtypeslib/dt_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#include <string.h>
88
#include <math.h>
99

10-
#include "dt.h"
1110
#include "extern.h"
11+
#include "dt.h"
1212

1313
static int day_tab[2][13] = {
1414
{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 0},

src/interfaces/ecpg/pgtypeslib/extern.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ int pgtypes_fmt_replace(union un_fmt_replace, int, char**, int*);
3535
char *pgtypes_alloc(long);
3636
char *pgtypes_strdup(char *);
3737

38+
#ifndef bool
39+
#define bool char
40+
#endif /* ndef bool */
41+
42+
#ifndef FALSE
43+
#define FALSE 0
44+
#endif /* FALSE */
45+
46+
#ifndef TRUE
47+
#define TRUE 1
48+
#endif /* TRUE */
3849

3950
#endif /* __PGTYPES_COMMON_H__ */
4051

src/interfaces/ecpg/pgtypeslib/interval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#error -ffast-math is known to break this code
1111
#endif
1212

13-
#include "dt.h"
1413
#include "extern.h"
14+
#include "dt.h"
1515
#include "pgtypes_error.h"
1616
#include "pgtypes_interval.h"
1717
#include "datetime.h"

src/interfaces/ecpg/pgtypeslib/timestamp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#error -ffast-math is known to break this code
1010
#endif
1111

12-
#include "dt.h"
1312
#include "extern.h"
13+
#include "dt.h"
1414
#include "pgtypes_timestamp.h"
1515
#include "pgtypes_date.h"
1616
#include "datetime.h"

0 commit comments

Comments
 (0)