mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
%lld not %Ld
This commit is contained in:
parent
e1f21884c6
commit
a7b5abcbc7
@ -573,10 +573,10 @@ main() {
|
|||||||
AC_MSG_RESULT(no),
|
AC_MSG_RESULT(no),
|
||||||
AC_MSG_RESULT(assuming not on target machine))
|
AC_MSG_RESULT(assuming not on target machine))
|
||||||
|
|
||||||
AC_MSG_CHECKING(whether 'long long int' is 64 bits using %Ld)
|
AC_MSG_CHECKING(whether 'long long int' is 64 bits using %lld)
|
||||||
AC_TRY_RUN([#include <stdio.h>
|
AC_TRY_RUN([#include <stdio.h>
|
||||||
typedef long long int int64;
|
typedef long long int int64;
|
||||||
#define INT64_FORMAT "%Ld"
|
#define INT64_FORMAT "%lld"
|
||||||
|
|
||||||
int64 a = 20000001;
|
int64 a = 20000001;
|
||||||
int64 b = 40000005;
|
int64 b = 40000005;
|
||||||
@ -606,7 +606,7 @@ int does_int64_work()
|
|||||||
main() {
|
main() {
|
||||||
exit(! does_int64_work());
|
exit(! does_int64_work());
|
||||||
}],
|
}],
|
||||||
[AC_DEFINE(HAVE_LONG_LONG_INT_64_Ld) AC_MSG_RESULT(yes)],
|
[AC_DEFINE(HAVE_LONG_LONG_INT_64_lld) AC_MSG_RESULT(yes)],
|
||||||
AC_MSG_RESULT(no),
|
AC_MSG_RESULT(no),
|
||||||
AC_MSG_RESULT(assuming not on target machine))
|
AC_MSG_RESULT(assuming not on target machine))
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: int8.h,v 1.5 1998/09/10 03:27:09 momjian Exp $
|
* $Id: int8.h,v 1.6 1998/09/10 05:36:00 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* These data types are supported on all 64-bit architectures, and may
|
* These data types are supported on all 64-bit architectures, and may
|
||||||
@ -29,11 +29,11 @@ typedef long int int64;
|
|||||||
|
|
||||||
#define INT64_FORMAT "%ld"
|
#define INT64_FORMAT "%ld"
|
||||||
#else
|
#else
|
||||||
#ifdef HAVE_LONG_LONG_INT_64_Ld
|
#ifdef HAVE_LONG_LONG_INT_64_lld
|
||||||
/* We have working support for "long long int", use that */
|
/* We have working support for "long long int", use that */
|
||||||
typedef long long int int64;
|
typedef long long int int64;
|
||||||
|
|
||||||
#define INT64_FORMAT "%Ld"
|
#define INT64_FORMAT "%lld"
|
||||||
#else
|
#else
|
||||||
#ifdef HAVE_LONG_LONG_INT_64_qd
|
#ifdef HAVE_LONG_LONG_INT_64_qd
|
||||||
/* We have working support for "long long int", use that */
|
/* We have working support for "long long int", use that */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user