Skip to content

Commit 8d9cf79

Browse files
author
Michael Meskes
committed
Needed more stuff from c.h.
1 parent e8d1dcb commit 8d9cf79

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
#ifndef PGTYPES_INTERVAL
44
#define PGTYPES_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+
#ifndef C_H
9+
10+
#ifdef HAVE_LONG_INT_64
11+
#ifndef HAVE_INT64
12+
typedef long int int64;
13+
#endif
14+
#elif defined(HAVE_LONG_LONG_INT_64)
15+
/* We have working support for "long long int", use that */
16+
17+
#ifndef HAVE_INT64
18+
typedef long long int int64;
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+
#ifndef HAVE_INT64
25+
typedef long int int64;
26+
#endif
27+
28+
#define INT64_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
#define HAVE_INT64_TIMESTAMP
1033
#endif
1134

35+
#endif /* C_H */
36+
1237
typedef struct
1338
{
1439
#ifdef HAVE_INT64_TIMESTAMP

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy