[Pyrex] ctypedef in a "cdef extern from" block
Greg Ewing
greg at cosc.canterbury.ac.nz
Mon Jun 9 23:53:17 CEST 2003
Matthias Baas <baas at ira.uka.de>:
> The problem is the WINAPI macro which is defined as:
>
> #define WINAPI __stdcall
Ah, I see. Windows bogosity strikes again. :-(
> Everything would be fine if Pyrex would just use the type name
> (PFNWGLCREATEPBUFFERARBPROC)
Try this:
ctypedef struct PFNWGLCREATEPBUFFERARBPROC
ctypedef PFNWGLCREATEPBUFFERARBPROC *HPBUFFERARB
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