# HG changeset patch # User laurent # Date 1255682273 -7200 # Node ID 1cdae505be9efa4e9e1f1c079a84dffede42d117 # Parent a895ae50b7376d435be3fa756230b5e27991c478 Warning in c_ext compiling fixed diff -r a895ae50b737 -r 1cdae505be9e plugins/c_ext/c_ext.py --- a/plugins/c_ext/c_ext.py Thu Oct 15 10:11:07 2009 +0200 +++ b/plugins/c_ext/c_ext.py Fri Oct 16 10:37:53 2009 +0200 @@ -324,15 +324,15 @@ text += " return 0;\n" text += "\n}\n\n" - text += "void __cleanup_%s()\n{\n"%location_str + text += "void __cleanup_%s(void)\n{\n"%location_str text += self.CFile.cleanUpFunction.gettext() text += "\n}\n\n" - text += "void __retrieve_%s()\n{\n"%location_str + text += "void __retrieve_%s(void)\n{\n"%location_str text += self.CFile.retrieveFunction.gettext() text += "\n}\n\n" - text += "void __publish_%s()\n{\n"%location_str + text += "void __publish_%s(void)\n{\n"%location_str text += self.CFile.publishFunction.gettext() text += "\n}\n\n" @@ -341,10 +341,7 @@ cfile.write(text) cfile.close() - if wx.Platform == '__WXMSW__': - matiec_flags = " -I../../matiec/lib" - else: - matiec_flags = " -I../matiec/lib" + matiec_flags = " -I%s"%os.path.abspath(self.GetPlugRoot().GetIECLibPath()) return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True