]> granicus.if.org Git - postgresql/commitdiff
cleanup of long long int atoi test.
authorBruce Momjian <bruce@momjian.us>
Sat, 10 Jul 1999 17:03:34 +0000 (17:03 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 10 Jul 1999 17:03:34 +0000 (17:03 +0000)
src/backend/utils/adt/numutils.c
src/include/port/alpha.h

index e975df5e9fb6db811ba9dcd54fe83dfafadc649d..5faaa5ddab4fbe82df6bf202d3555e05733c33b3 100644 (file)
@@ -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)
index 952f3465330ef3cb8baa2e97400cf4279cf29b5d..6499bca6e98bd44ab4fc0e933b1f073f5e1e607c 100644 (file)
@@ -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;