aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/config.h.in6
-rw-r--r--src/include/utils/int8.h8
2 files changed, 12 insertions, 2 deletions
diff --git a/src/include/config.h.in b/src/include/config.h.in
index 07e48851ffb..f73058886c7 100644
--- a/src/include/config.h.in
+++ b/src/include/config.h.in
@@ -281,6 +281,12 @@ extern void srandom(unsigned int seed);
/* Set to 1 if your DBL_MIN is problematic */
#undef HAVE_DBL_MIN_PROBLEM
+/* Set to 1 if your snprintf has %lld for 'long long int' */
+#undef HAVE_INT64_AS_LLD
+
+/* Set to 1 if your snprintf has %qd for 'long long int' */
+#undef HAVE_INT64_AS_QD
+
/* Set to 1 if type "long int" works and is 64 bits */
#undef HAVE_LONG_INT_64
diff --git a/src/include/utils/int8.h b/src/include/utils/int8.h
index bdcab2e05ec..3ad1fd2cd49 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.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;