Ticket #213 (closed defect: fixed)
geos_c.h should always include stddef.h
| Reported by: | slinkp | Owned by: | sgillies |
|---|---|---|---|
| Priority: | major | Milestone: | 3.2.0 |
| Component: | Default | Version: | 3.0.0 |
| Severity: | Unassigned | Keywords: | |
| Cc: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.
