This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: w32api: incompatible with gcc-4.3
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Dave Korn wrote:
> rofl. Not after preprocessing they don't:
>
> DWORD int;
> ^^^^^^^^^^^^ !
>
> Somewhere, someone has typed "#define Status int". You might try building
> the pre-processed source again with something like "-dD" to see where it's
> coming from.
OK, I found it; <X11/Xlib.h> does this. There is a special
<X11/Xwindows.h> header which is supposed to be used within XWin sources
to prevent these problems, but one file wasn't using it. Both gcc3 and
gcc4 therefore saw "DWORD Status;" as "unsigned long int;", but only
gcc4 is strict enough to not allow it.
Thanks for the help, and sorry for the noise.
Yaakov
Cygwin/X
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAkm57LkACgkQpiWmPGlmQSOy8QCfXDEMyU05WQT+DUE2thyN7Ibx
i2cAniGCVu5PCzjd+vKBdBLAC+dWCymq
=jZ7z
-----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/