Warning in c_ext compiling fixed
authorlaurent
Fri, 16 Oct 2009 10:37:53 +0200
changeset 419 1cdae505be9e
parent 417 a895ae50b737
child 420 c093ec48f2fd
Warning in c_ext compiling fixed
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