Applied to 2.2. branch. --strk;
On Mon, Apr 03, 2006 at 12:52:14AM +0200, Mateusz Å?oskot wrote: > Charlie Savage wrote: > > The Geos 2.2.2 XmlTester doesn't compile on MinGW. > > > > Offending code is in indexSweepline.h, line 62. > > > > class indexSweepLineEvent { public: enum { INSERT = 1, DELETE > > <------- Breaks }; > > > > The error: > > > > In file included from ../..//source/headers/geos/opValid.h:67, from > > XMLTester.cpp:41: ../..//source/headers/geos/indexSweepline.h:62: > > error: expected identifier before numeric constant > > > > Not sure if this is important, but thought I'd bring it up. I'm > > using g++ 3.4.5 on Windows XP under MingW. > > Yup, this is known bug. > It has been fixed in GEOS CVS. > The problem is with DELETE enumerator name. > DELETE is used by Windows Platform SDK headers - winnt.h - where it is > defined as: > > #define DELETE (0x00010000L) > > This is problem with macro evil, so it was fixed about month ago: > > SweepLineEvent.cpp > Revision 1.8 2006/03/02 14:53:40 strk > SweepLineEvent::DELETE=>DELETE_EVENT, INSERT=>INSERT_EVENT (#45) > > NOTE: > I'd suggest to rename it in GEOS 2.2.0 too as a backport fix. > > Cheers > -- > Mateusz Åoskot > http://mateusz.loskot.net > _______________________________________________ > geos-devel mailing list > geos-devel@geos.refractions.net > http://geos.refractions.net/mailman/listinfo/geos-devel -- /"\ ASCII Ribbon Campaign \ / Respect for low technology. X Keep e-mail messages readable by any computer system. / \ Keep it ASCII. _______________________________________________ geos-devel mailing list geos-devel@geos.refractions.net http://geos.refractions.net/mailman/listinfo/geos-devel