On Fri, Sep 07, 2007 at 10:39:15AM +0800, Erich Dollansky wrote: > Hi, > > I have not found a method yet whic works 100% and is portable. > > Luigi Rizzo wrote: > >On Thu, Sep 06, 2007 at 03:25:52PM -0400, Yan wrote: > > Consider this: > > >>Perhaps "if(sizeof(void*)==4) { /* 32 */} else if(sizeof(void*) ==8) { /* > >>64 > >>*/ }" ? > >> > and also > > sizeof (int) > > The rest will be platform specific. > An int usually remains as 4 bytes on 64-bit platforms; long changes to 64-bit. -- Bruce CranReceived on Fri Sep 07 2007 - 04:33:08 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:17 UTC