mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Have configure check for use of %lld for int64, and if that fails, check for
use of %qd...a more generic solution then having #ifdef __<INSERT OS HERE>__ in the code...
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: int8.h,v 1.10 1999/02/13 23:22:23 momjian Exp $
|
||||
* $Id: int8.h,v 1.11 1999/03/08 04:17:33 scrappy Exp $
|
||||
*
|
||||
* NOTES
|
||||
* These data types are supported on all 64-bit architectures, and may
|
||||
@@ -33,7 +33,11 @@ typedef long int int64;
|
||||
/* We have working support for "long long int", use that */
|
||||
typedef long long int int64;
|
||||
|
||||
#define INT64_FORMAT "%lld"
|
||||
#ifdef HAVE_INT64_AS_LLD
|
||||
# define INT64_FORMAT "%lld"
|
||||
#elif HAVE_INT64_AS_QD
|
||||
# define INT64_FORMAT "%qd"
|
||||
#endif
|
||||
#else
|
||||
/* Won't actually work, but fall back to long int so that int8.c compiles */
|
||||
typedef long int int64;
|
||||
|
||||
Reference in New Issue
Block a user