[geos-devel] [GEOS] #213: geos_c.h should always include stddef.h

GEOS geos-trac at osgeo.org
Tue Oct 28 18:26:31 EDT 2008


#213: geos_c.h should always include stddef.h
------------------------+---------------------------------------------------
 Reporter:  slinkp      |       Owner:  geos-devel at lists.osgeo.org
     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).


More information about the geos-devel mailing list