Re: how to tell 64 vs 32 bit architecture ?

From: Luigi Rizzo <rizzo_at_icir.org>
Date: Tue, 11 Sep 2007 05:16:53 -0700
On Fri, Sep 07, 2007 at 09:54:35AM -0400, Yan wrote:
> How about this:
> 
> #define MY_MAGIC ((sizeof(intptr_t)==4) ? 0Xdeadbeef : 0xdeadbeefd00de123)

gcc 3.4 on a 32bit machine complains because the second constant
is too large.

cheers
luigi
Received on Tue Sep 11 2007 - 10:18:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:17 UTC