__LONG_MAX__

Gavin Romig-Koch gavin@cygnus.com
Thu Sep 3 04:22:00 GMT 1998


Oh, of course, there is no requirement that the integer types have
the same size (or even the same representation) in the preprocessor.
Bah.  Sorry.

Michael Meissner writes:
 > This is because sizeof (even of fundamental types) is not available to the
 > preprocessor.

It didn't use "sizeof", though the effect is the same.


Richard Henderson writes:
 > One large one -- __LONG_MAX__ can no longer be used in cpp conditionals.

Well, it would be valid to use it in cpp conditionals, but it wouldn't 
necessarly have the same value inside and outside of cpp conditionals
(which would not be "a good thing").

                                              -gavin...




More information about the Gcc mailing list