Add missing header removed in https://codereview.scilab.org/#/c/10464/ (make Mac... 65/10565/2
Vincent COUVERT [Thu, 21 Feb 2013 22:00:10 +0000 (23:00 +0100)]
Change-Id: I50ea2f152a20d404e08a1e0b00bcf0af08e2bbbe

scilab/modules/core/src/c/getversion.c

index e9eb162..f50ae28 100644 (file)
@@ -22,6 +22,7 @@
 #include "loadversion.h"
 #include "freeArrayOfString.h"
 #include "MALLOC.h"
+#include "../../../io/includes/getenvc.h"
 /*--------------------------------------------------------------------------*/
 #define TCLSCI_MODULE_NAME "tclsci"
 #define TCLTK_OPTION_STRING "tk"
@@ -308,7 +309,7 @@ BOOL with_modelica_compiler(void)
     char *fullpathModelicac = searchEnv(ModelicacName, "PATH");
     if (fullpathModelicac)
     {
-        FREE(fullpathModelicac);
+        //FREE(fullpathModelicac);
         fullpathModelicac = NULL;
         return TRUE;
     }