fix linux startup after fcddafe 01/19501/1
Antoine ELIAS [Mon, 23 Oct 2017 14:28:55 +0000 (16:28 +0200)]
Change-Id: I7098cee9591efd408510b23408bcde7a4c772ccc

scilab/modules/startup/src/cpp/scilab.cpp

index 73a1837..136d453 100644 (file)
@@ -398,10 +398,10 @@ int main(int argc, char *argv[])
     //                      | [-nwni]       -> Terminal IO + StartScilabEngine
     //                      | [-nw]         -> Terminal IO + InitMacOSXEnv
 #ifndef WITHOUT_GUI
-#ifdef WITH_CONSOLE_JAVA
-    //pSEI->iConsoleMode = SCILAB_STD;
-#else
-    pSEI->iConsoleMode = SCILAB_NW;
+#ifdef _MSC_VER
+    #ifndef WITH_CONSOLE_JAVA
+        pSEI->iConsoleMode = SCILAB_NW;
+    #endif
 #endif
     if (pSEI->iConsoleMode)
     {
@@ -490,7 +490,7 @@ int main(int argc, char *argv[])
     }
 
 #if defined(_WIN32) && !defined(WITHOUT_GUI) && defined(WITH_CONSOLE_JAVA)
-    LocalFree(szArglist); 
+    LocalFree(szArglist);
 #endif
 }