-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Bruce Korb on 10/18/2009 12:21 PM: > Eric Blake wrote: >> But on Windows 64 bit platforms, that is exactly the case (64-bit >> pointers, 32-bit long). > > Thanks, Eric. More compat.h magic: > >> #ifndef HAVE_INTPTR_T >> # if SIZEOF_CHARP == SIZEOF_LONG >> typedef signed long intptr_t;
On any platform that lacks intptr_t, this should be right - the only platforms stupid enough to provide 32-bit long but 64-bit char* (aka windows 64) should at least be sane enough to provide intptr_t. >> # else >> typedef signed int intptr_t; This arm of the #if is pointless. On windows 64, int and long are the same size. On almost every other platform, char* and long are the same size, and either int and long are the same size (32 bit platforms) or int is smaller than pointers (64 bit platforms). - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrbhBMACgkQ84KuGfSFAYCjTACgrr02LIrudj/HD0VRo1cjTPpe nSIAniPrEV+hE1+8DhvGFL4WkR2IUUTn =UPZg -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Autogen-users mailing list Autogen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/autogen-users