[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detect word size in the Hurd from the preprocessor
From: |
Richard Braun |
Subject: |
Re: Detect word size in the Hurd from the preprocessor |
Date: |
Sat, 1 Jun 2019 17:21:55 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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