aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/int8.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-03-15 01:43:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-03-15 01:43:07 +0000
commitf621b85a2a0dba37813736f3f073c8b0b69b5d53 (patch)
tree86bcb2c330f759dc3da543c09897b436c5f80688 /src/include/utils/int8.h
parent98ad3fcfaf32e23959b44ec3f06f27555eaa5605 (diff)
downloadpostgresql-f621b85a2a0dba37813736f3f073c8b0b69b5d53.tar.gz
postgresql-f621b85a2a0dba37813736f3f073c8b0b69b5d53.zip
Fix int8 configure one more time ... prior version didn't
define INT64_FORMAT in all cases.
Diffstat (limited to 'src/include/utils/int8.h')
-rw-r--r--src/include/utils/int8.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/include/utils/int8.h b/src/include/utils/int8.h
index 3ad1fd2cd49..db2e9edb520 100644
--- a/src/include/utils/int8.h
+++ b/src/include/utils/int8.h
@@ -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);