Skip to content

Commit ea436f9

Browse files
committed
Well the absolute correct solution would involve all of:
int8, int16, int32, int64 and separately uint8, uint16, uint32, uint64 The previous patch grouped: int8, int16 and int32 uint8, uint16 and uint32 int64 and uint64 <-- this grouping is wrong on AIX 4.3.3 and below If you prefer to make 4 groups out of this you could apply this patch. Andreas
1 parent 2c1784a commit ea436f9

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

configure.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,8 @@ AC_DEFINE_UNQUOTED(MAXIMUM_ALIGNOF, $MAX_ALIGNOF, [Define as the maximum alignme
11741174
# doesn't work the way we want to.
11751175
AC_CHECK_SIZEOF(int8, 0)
11761176
AC_CHECK_SIZEOF(uint8, 0)
1177+
AC_CHECK_SIZEOF(int64, 0)
1178+
AC_CHECK_SIZEOF(uint64, 0)
11771179

11781180
PGAC_FUNC_POSIX_SIGNALS
11791181

src/include/c.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $Id: c.h,v 1.110 2001/11/15 16:09:34 momjian Exp $
15+
* $Id: c.h,v 1.111 2001/11/15 16:35:19 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -270,29 +270,29 @@ typedef double *float64;
270270
*/
271271
#ifdef HAVE_LONG_INT_64
272272
/* Plain "long int" fits, use it */
273-
#if SIZEOF_INT8 == 0
273+
#if SIZEOF_INT64 == 0
274274
typedef long int int64;
275275
#endif
276-
#if SIZEOF_UINT8 == 0
276+
#if SIZEOF_UINT64 == 0
277277
typedef unsigned long int uint64;
278278
#endif
279279

280280
#else
281281
#ifdef HAVE_LONG_LONG_INT_64
282282
/* We have working support for "long long int", use that */
283-
#if SIZEOF_INT8 == 0
283+
#if SIZEOF_INT64 == 0
284284
typedef long long int int64;
285285
#endif
286-
#if SIZEOF_UINT8 == 0
286+
#if SIZEOF_UINT64 == 0
287287
typedef unsigned long long int uint64;
288288
#endif
289289

290290
#else
291291
/* Won't actually work, but fall back to long int so that code compiles */
292-
#if SIZEOF_INT8 == 0
292+
#if SIZEOF_INT64 == 0
293293
typedef long int int64;
294294
#endif
295-
#if SIZEOF_UINT8 == 0
295+
#if SIZEOF_UINT64 == 0
296296
typedef unsigned long int uint64;
297297
#endif
298298

src/include/pg_config.h.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* or in pg_config.h afterwards. Of course, if you edit pg_config.h, then your
99
* changes will be overwritten the next time you run configure.
1010
*
11-
* $Id: pg_config.h.in,v 1.12 2001/11/15 16:09:34 momjian Exp $
11+
* $Id: pg_config.h.in,v 1.13 2001/11/15 16:35:19 momjian Exp $
1212
*/
1313

1414
#ifndef PG_CONFIG_H
@@ -699,6 +699,8 @@ extern int fdatasync(int fildes);
699699

700700
#undef SIZEOF_INT8
701701
#undef SIZEOF_UINT8
702+
#undef SIZEOF_INT64
703+
#undef SIZEOF_UINT64
702704

703705
/*
704706
*------------------------------------------------------------------------

0 commit comments

Comments
 (0)