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

Commitea436f9

Browse files
committed
Well the absolute correct solution would involve all of:
int8, int16, int32, int64 and separately uint8, uint16, uint32, uint64The previous patch grouped:int8, int16 and int32uint8, uint16 and uint32int64 and uint64 <-- this grouping is wrong on AIX 4.3.3 and belowIf you prefer to make 4 groups out of this you could apply this patch.Andreas
1 parent2c1784a commitea436f9

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
#ifdefHAVE_LONG_INT_64
272272
/* Plain "long int" fits, use it */
273-
#ifSIZEOF_INT8==0
273+
#ifSIZEOF_INT64==0
274274
typedeflongintint64;
275275
#endif
276-
#ifSIZEOF_UINT8==0
276+
#ifSIZEOF_UINT64==0
277277
typedefunsigned longintuint64;
278278
#endif
279279

280280
#else
281281
#ifdefHAVE_LONG_LONG_INT_64
282282
/* We have working support for "long long int", use that */
283-
#ifSIZEOF_INT8==0
283+
#ifSIZEOF_INT64==0
284284
typedeflong longintint64;
285285
#endif
286-
#ifSIZEOF_UINT8==0
286+
#ifSIZEOF_UINT64==0
287287
typedefunsigned long longintuint64;
288288
#endif
289289

290290
#else
291291
/* Won't actually work, but fall back to long int so that code compiles */
292-
#ifSIZEOF_INT8==0
292+
#ifSIZEOF_INT64==0
293293
typedeflongintint64;
294294
#endif
295-
#ifSIZEOF_UINT8==0
295+
#ifSIZEOF_UINT64==0
296296
typedefunsigned longintuint64;
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
#ifndefPG_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)

[8]ページ先頭

©2009-2025 Movatter.jp