-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to John Emmas on 10/31/2008 7:14 AM: > On Cygwin, '/usr/include/stdint.h' typedefs int32_t as long. The same file > on my Linux partition typedefs it to int. I must admit, I don't know what > to do now..... :-( > > Is there a simple solution to this?
Both implementations comply with POSIX - your code is buggy for assuming that int32_t can be converted without casts to either long or int (for that matter, it is theoretically possible that int32_t could be a completely distinct type from either int or long, although I don't know of any such platform). But yes, it might be nice if cygwin used the same type as Linux, as we claim to strive for Linux source compatibility. However, changing it now would be changing the C++ ABI, with far-reaching effects (anything in C++ that involves a mangled name would change what the function name is, which will in turn cause link errors if you mix code pre-change and post-change that expect different function names). On the other hand, gcc 4 may already be causing ABI changes, so maybe this would be appropriate as part of the switch to gcc 4 and cygwin 1.7.0? - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----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 iEYEARECAAYFAkkLB4sACgkQ84KuGfSFAYCD3gCgwXa1C5W55LSXmHSYmhYs7TiQ FHYAn3WMNVs6zIBjkuLPhbtMznRdASHB =amZ/ -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/