On Mon, Jun 01, 2009 at 07:50:59PM +0200, Matthias Kilian wrote:
We set _LP64 and __LP64__ variables on 64-bit arch.

$ cpp -dM /dev/null | grep LP64
#define _LP64 1
#define __LP64__ 1

It should also be ok to (ab)use LONG_BIT from limits.h, depending
on how the code is 64 bit specific.

Whichever solution is best, it would be nice if it was somewhat portable
to other unices.  The _LP64 || __LP64__ solution seems to be portable
anywhere a recent version of gcc is in use.

Ted

--
           There's a party in your skull.  And you're invited!

Name:    Ted Walther
Phone:   604-755-7732
Skype:   tederific
Email:   t...@reactor-core.org
Address: 1755 246 St, LANGLEY BC  V2Z1G4

Reply via email to