Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6f30d56

Browse files
author
Michael Meskes
committed
The remaining files ...
1 parent8d8b940 commit6f30d56

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
#defineJROUND(j) (rint(((double) (j))*TIME_PREC_INV)/TIME_PREC_INV)
1616
#endif
1717

18-
#ifndefbool
19-
#definebool char
20-
#endif/* ndef bool */
21-
22-
#ifndefFALSE
23-
#defineFALSE 0
24-
#endif/* FALSE */
25-
26-
#ifndefTRUE
27-
#defineTRUE 1
28-
#endif/* TRUE */
29-
3018
#defineUSE_POSTGRES_DATES 0
3119
#defineUSE_ISO_DATES 1
3220
#defineUSE_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
staticintday_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+
#ifndefbool
39+
#definebool char
40+
#endif/* ndef bool */
41+
42+
#ifndefFALSE
43+
#defineFALSE 0
44+
#endif/* FALSE */
45+
46+
#ifndefTRUE
47+
#defineTRUE 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)

[8]ページ先頭

©2009-2025 Movatter.jp