On Mon, Oct 22, 2012 at 3:41 PM, Richard Jones <
r1char...@gmail.com> wrote:
> I'm including GL/glext.h (through .pxd declarations) but all of the function
> prototypes are hidden behind "#ifdef GL_GLEXT_PROTOTYPES". How do I define
> that in my cython code so I get those prototypes?
>
> The pxd currently looks like this:
>
> cdef extern from "GL/glext.h":
> void glUniform1f(GLint location, GLfloat v0)
> void glUniform2f(GLint location, GLfloat v0, GLfloat v1)
> void glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
>
> But when it comes to compile time the prototypes aren't defined and I'm
> getting typing problems because of it.
See
http://docs.python.org/distutils/setupscript.html#preprocessor-options
- Robert