On Sat, Jun 01, 2019 at 01:26:54PM +0200, Joan Lledó wrote: > Is there a reliable way for the C preprocessor to know whether the > system is 32 or 64 bit, in the Hurd? I know the Hurd is only 32 bit > for now, but I wonder if is there a macro somewhere which contains > this information.
With GCC and Clang, __LP64__ is the most reliable one. Note that this is specific to the ILP32 and LP64 data models though. On Windows, which uses the LLP64 data model, it wouldn't work. -- Richard Braun