From: Jim Kleckner Date: Sun, 30 Mar 2008 09:25:39 +0000 (-0700) Subject: [Cython] Small patch for __stdcall X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2c056908f6bc0ce7adaffbcebd9be175c84436e0;p=cython.git [Cython] Small patch for __stdcall 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. --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 7c8b4aae..0922aef0 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -274,8 +274,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): 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)