#213: geos_c.h should always include stddef.h
------------------------+---------------------------------------------------
Reporter: slinkp | Owner: [email protected]
Type: defect | Status: new
Priority: major | Milestone:
Component: Default | Version:
Severity: Unassigned | Keywords:
------------------------+---------------------------------------------------
geos_c.h contains these lines:
{{{
#ifndef __cplusplus
# include <stddef.h> /* for size_t definition */
#endif
}}}
I don't know squat about C++, but I'm told by a coworker that the
conditional is wrong.
It usually happens to work because we have probably already included
stddef.h from elsewhere.
It should really just be:
{{{
# include <stddef.h> /* for size_t definition */
}}}
We discovered this while trying to use the h2xml.py script from ctypeslib
on geos_c.h... that script in turn uses gccxml. After making the above
change, it works.
--
Ticket URL: <http://trac.osgeo.org/geos/ticket/213>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite
(JTS)._______________________________________________
geos-devel mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/geos-devel