This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
glimits.h
- To: egcs at egcs dot cygnus dot com
- Subject: glimits.h
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Tue, 22 Dec 1998 16:48:33 -0500
I just noticed that glimits.h (installed in .../include/limits.h)
has special definitions for __LONG_MAX__ on 64-bit architectures. As
64-bit AIX behaves similarly, I guess this file should reflect AIX's "long
int" type for 64-bit targets as well.
The only preprocessor macro AIX provides to distinguish 64-bit
mode is __64BIT__. Can I test for this or do I need to test for
additional macros ensuring an AIX system? Is __64BIT__ by itself too
dangerous a test in the common GCC namespace?
#if defined (__64BIT__) || defined (__alpha__) || ...
OR
#if (defined (_AIX) && defined (__64BIT__)) || defined (__alpha__) || ...?
Happy Holidays,
David