mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Fix int8 configure one more time ... prior version didn't
define INT64_FORMAT in all cases.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: int8.h,v 1.11 1999/03/08 04:17:33 scrappy Exp $
|
||||
* $Id: int8.h,v 1.12 1999/03/15 01:43:05 tgl Exp $
|
||||
*
|
||||
* NOTES
|
||||
* These data types are supported on all 64-bit architectures, and may
|
||||
@@ -27,26 +27,25 @@
|
||||
/* Plain "long int" fits, use it */
|
||||
typedef long int int64;
|
||||
|
||||
#define INT64_FORMAT "%ld"
|
||||
#else
|
||||
#ifdef HAVE_LONG_LONG_INT_64
|
||||
/* We have working support for "long long int", use that */
|
||||
typedef long long int int64;
|
||||
|
||||
#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;
|
||||
|
||||
#define INT64_FORMAT "%ld"
|
||||
#define INT64_IS_BUSTED
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* this should be set in config.h: */
|
||||
#ifndef INT64_FORMAT
|
||||
#define INT64_FORMAT "%ld"
|
||||
#endif
|
||||
|
||||
|
||||
extern int64 *int8in(char *str);
|
||||
extern char *int8out(int64 * val);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user