Hai Nguyen schrieb am 06.10.2017 um 16:22:
> On Fri, Oct 6, 2017 at 3:23 AM Marcelo CB wrote:
>> I am building a module that uses opengl on a win10 machine, using Visual
>> C++ 2008 for python 2.7.
>>
>> Unfortunately, to be able to build I have to manually generate the c code;
>> edit the .c file to add [ #include "windows.h" ], before the GL includes;
>> compile; link.
>>
>> Is there an option to force the [ #include "windows.h" ] to be generated
>> (at the right place!) using the distutils process?
>>
>
> I am nosorry at computer right now, so here is my guess
>
> cdef extern from "your.h":
> pass
>
> Then put your includ in your.h
Or just
cdef extern from "windows.h":
pass
cimport opengl_whatever
Stefan