The following small patch gets rid of some warnings on the cygwin
platform (it it not WIN32 but does have definitions of __stdcall
resulting in warnings).
Please let me know if it will or won't get into the upstream release.
Thanks.
--- ModuleNode.py.orig 2008-03-17 16:55:53.946851100 -0700
+++ ModuleNode.py 2008-03-17 16:58:21.900687900 -0700
@@ -272,8 +272,10 @@
code.putln("#if PY_VERSION_HEX < 0x02040000")
code.putln(" #define METH_COEXIST 0")
code.putln("#endif")
- code.putln("#ifndef WIN32")
+ code.putln("#ifndef __stdcall")
code.putln(" #define __stdcall")
+ code.putln("#endif")
+ code.putln("#ifndef __cdecl")
code.putln(" #define __cdecl")
code.putln("#endif")
self.generate_extern_c_macro_definition(code)
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev