aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-07-10 17:03:34 +0000
committerBruce Momjian <bruce@momjian.us>1999-07-10 17:03:34 +0000
commitd62c25d452d48dc56ae90b9a9e74f9d6859f430a (patch)
treec6b287fe1b1ac1a19e78138a88f6d87a1d1eac93 /src
parent5a3fa95c39172722e632c25dec2d1201697ea61c (diff)
downloadpostgresql-d62c25d452d48dc56ae90b9a9e74f9d6859f430a.tar.gz
postgresql-d62c25d452d48dc56ae90b9a9e74f9d6859f430a.zip
cleanup of long long int atoi test.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/adt/numutils.c6
-rw-r--r--src/include/port/alpha.h1
2 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/utils/adt/numutils.c b/src/backend/utils/adt/numutils.c
index e975df5e9fb..5faaa5ddab4 100644
--- a/src/backend/utils/adt/numutils.c
+++ b/src/backend/utils/adt/numutils.c
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.33 1999/07/09 17:40:31 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.34 1999/07/10 17:03:33 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -76,7 +76,7 @@ pg_atoi(char *s, int size, int c)
switch (size)
{
case sizeof(int32):
-#if defined(HAVE_LONG_INT_64) || defined(HAVE_LONG_LONG_INT_64)
+#if defined(HAVE_LONG_INT_64)
/* won't get ERANGE on these with 64-bit longs... */
if (l < INT_MIN)
{
@@ -88,7 +88,7 @@ pg_atoi(char *s, int size, int c)
errno = ERANGE;
elog(ERROR, "pg_atoi: error reading \"%s\": %m", s);
}
-#endif /* HAVE_LONG_INT_64 or HAVE_LONG_LONG_INT_64 */
+#endif /* HAVE_LONG_INT_64 */
break;
case sizeof(int16):
if (l < SHRT_MIN)
diff --git a/src/include/port/alpha.h b/src/include/port/alpha.h
index 952f3465330..6499bca6e98 100644
--- a/src/include/port/alpha.h
+++ b/src/include/port/alpha.h
@@ -1,6 +1,5 @@
#define USE_POSIX_TIME
#define DISABLE_XOPEN_NLS
-#define HAS_LONG_LONG
#define HAS_TEST_AND_SET
#include <sys/mman.h> /* for msemaphore */
typedef msemaphore slock_t;