www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 AT users DOT sourceforge DOT net> |
User-Agent: | Thunderbird 2.0.0.19 (Windows/20081209) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: w32api: incompatible with gcc-4.3 |
References: | <49B9CA2C DOT 9050902 AT users DOT sourceforge DOT net> <49B9E5E8 DOT 9040606 AT gmail DOT com> |
In-Reply-To: | <49B9E5E8.9040606@gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |