summaryrefslogtreecommitdiff
path: root/src/include/config.h.in
diff options
context:
space:
mode:
authorBruce Momjian1998-08-23 22:25:54 +0000
committerBruce Momjian1998-08-23 22:25:54 +0000
commit07ae591c87ad256a5c9b081a3eb14ba5549d273f (patch)
treeb59cc37ca712b4fe248db0484e4641870dd0a18b /src/include/config.h.in
parent9cad9febb172b09ff8c2366a4e19469926304f0d (diff)
Attached is a patch that uses autoconf to determine whether there
is a working 64-bit-int type available. In playing around with it on my machine, I found that gcc provides perfectly fine support for "long long" arithmetic ... but sprintf() and sscanf(), which are system-supplied, don't work :-(. So the autoconf test program does a cursory test on them too. If we find that a lot of systems are like this, it might be worth the trouble to implement binary<->ASCII conversion of int64 ourselves rather than relying on sprintf/sscanf to handle the data type. regards, tom lane
Diffstat (limited to 'src/include/config.h.in')
-rw-r--r--src/include/config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/config.h.in b/src/include/config.h.in
index c849b078325..f8836576cfe 100644
--- a/src/include/config.h.in
+++ b/src/include/config.h.in
@@ -219,6 +219,12 @@ extern void srandom(int seed);
/* Set to 1 if your DBL_MIN is problematic */
#undef HAVE_DBL_MIN_PROBLEM
+/* Set to 1 if type "long int" works and is 64 bits */
+#undef HAVE_LONG_INT_64
+
+/* Set to 1 if type "long long int" works and is 64 bits */
+#undef HAVE_LONG_LONG_INT_64
+
/*
* Code below this point should not require changes
*/