[Pyrex] C public functions conflict with protos in headers
Greg Ewing
greg at cosc.canterbury.ac.nz
Tue Jun 29 07:16:43 CEST 2004
Phil Frost <indigo at bitglue.com>:
> The reason seems to be that pyrex emits prototypes for write(), which
> arn't quite the same as the write in unistd, because I've had to drop
> the 'const' for Pyrex.
You could try creating a .h file which contains
#define const
and tell Pyrex to include that before including your
system header files.
It's a hack, but I can't think of anything better at
the moment.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list