X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49B9ECB9.9040902@users.sourceforge.net>
Date: Fri, 13 Mar 2009 00:18:49 -0500
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: w32api: incompatible with gcc-4.3
References: <49B9CA2C.9050902@users.sourceforge.net> <49B9E5E8.9040606@gmail.com>
In-Reply-To: <49B9E5E8.9040606@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

-----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/

