This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

glimits.h


	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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]