From: Robert_Pluim AT baynetworks DOT com (Robert Pluim) Subject: egcs-1.1 windows headers cause compilation failure in cygwin b20 14 Dec 1998 18:34:07 -0800 Message-ID: <13941.5584.470000.532589.cygnus.gnu-win32@LTRPLUIM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: egcs-bug AT cygnus DOT com, gnu-win32 AT cygnus DOT com Hi, I'm not quite sure whether this falls under cygwin or egcs, so I'm sending to both lists. Feel free to redirect me to a more appropriate location. The following program fails to compile under egcs-1.1 in cygwin b20, because Windows32/Defines.h #defines DELETE already. (it's actually a chopped down piece of code from cvs-1.10.4) #include int main () { enum {ADD, DELETE} type; } Here's the error: delete.c: In function `main': delete.c:6: parse error before `(' gcc -v says: Reading specs from e:\CYGNUS\CYGWIN~1\H-I586~1\BIN\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\specs gcc version egcs-2.91.57 19980901 (egcs-1.1 release) Two questions arise: 1. Why is this windows stuff getting included when I'm not asking for it? 2. Isn't this namespace pollution? I must admit I'm not au-fait with all the various standards, and I realise it might all be Microsoft's fault, but couldn't this stuff at least be #ifdef'd somehow? Thanks Robert -- Robert Pluim Tel: +33 4 92 96 17 43 Systems Development Engineer Fax: +33 4 92 96 15 32 Bay Networks EMEA, 25 Allee Pierre Ziller, 06560 Valbonne, France - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".