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

Commit8d9cf79

Browse files
author
Michael Meskes
committed
Needed more stuff from c.h.
1 parente8d1dcb commit8d9cf79

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

‎src/interfaces/ecpg/include/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ override CPPFLAGS := -DFRONTEND -I$(top_srcdir)/src/interfaces/ecpg/include \
77

88
informix_esql_dir =$(pkgincludedir)/informix/esql
99

10+
all:$(top_builddir)/src/interfaces/ecpg/include/ecpg_config.h
11+
1012
install: all installdirs install-headers
1113

1214
.PHONY: install-headers

‎src/interfaces/ecpg/include/ecpg_config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* Define to 1 if the system has the type `int64'. */
2+
#undef HAVE_INT64
3+
14
/* Define to 1 if `long int' works and is 64 bits. */
25
#undef HAVE_LONG_INT_64
36

‎src/interfaces/ecpg/include/pgtypes_interval.h

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,39 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/include/pgtypes_interval.h,v 1.10 2006/08/23 12:01:52 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/include/pgtypes_interval.h,v 1.11 2006/08/24 10:48:21 meskes Exp $ */
22

33
#ifndefPGTYPES_INTERVAL
44
#definePGTYPES_INTERVAL
55

66
#include<ecpg_config.h>
77

8-
#if defined(USE_INTEGER_DATETIMES)&& (defined(HAVE_LONG_INT_64)|| defined(HAVE_LONG_LONG_INT_64))
8+
#ifndefC_H
9+
10+
#ifdefHAVE_LONG_INT_64
11+
#ifndefHAVE_INT64
12+
typedeflongintint64;
13+
#endif
14+
#elif defined(HAVE_LONG_LONG_INT_64)
15+
/* We have working support for "long long int", use that */
16+
17+
#ifndefHAVE_INT64
18+
typedeflong longintint64;
19+
#endif
20+
#else/* not HAVE_LONG_INT_64 and not
21+
* HAVE_LONG_LONG_INT_64 */
22+
23+
/* Won't actually work, but fall back to long int so that code compiles */
24+
#ifndefHAVE_INT64
25+
typedeflongintint64;
26+
#endif
27+
28+
#defineINT64_IS_BUSTED
29+
#endif/* not HAVE_LONG_INT_64 and not HAVE_LONG_LONG_INT_64 */
30+
31+
#if defined(USE_INTEGER_DATETIMES)&& !defined(INT64_IS_BUSTED)
932
#defineHAVE_INT64_TIMESTAMP
1033
#endif
1134

35+
#endif/* C_H */
36+
1237
typedefstruct
1338
{
1439
#ifdefHAVE_INT64_TIMESTAMP

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp