s390x needs 64-bit __LONG_MAX__.

From-SVN: r44781
This commit is contained in:
Ulrich Weigand 2001-08-10 22:54:59 +00:00 committed by Ulrich Weigand
parent fe203faf3c
commit db80cc1f2a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-08-10 Ulrich Weigand <uweigand@de.ibm.com>
* glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
2001-08-10 Richard Henderson <rth@redhat.com>
* doc/extend.texi (C Implementation): New chapter.

View File

@ -67,7 +67,7 @@
/* Minimum and maximum values a `signed long int' can hold.
(Same as `int'). */
#ifndef __LONG_MAX__
#if defined (__alpha__) || (defined (__sparc__) && defined(__arch64__)) || defined (__sparcv9)
#if defined (__alpha__) || (defined (__sparc__) && defined(__arch64__)) || defined (__sparcv9) || defined (__s390x__)
#define __LONG_MAX__ 9223372036854775807L
#else
#define __LONG_MAX__ 2147483647L