Fix compilation when compiling with GUI 58/15258/1
Vincent COUVERT [Mon, 22 Sep 2014 07:33:19 +0000 (09:33 +0200)]
Change-Id: Idd95e99c3775e7db4dd831e863011363b62b3cb9

scilab/modules/scicos_blocks/src/c/cscope.c

index 41d2002..d36487e 100644 (file)
@@ -254,10 +254,10 @@ SCICOS_BLOCKS_IMPEXP void cscope(scicos_block * block, scicos_flag flag)
             sco = reallocHistoryBuffer(block, sco->internal.maxNumberOfPoints + sco->internal.numberOfPoints);
             sco->scope.disableBufferUpdate = FALSE;
             sco->scope.historyUpdateCounter = 0;
-            #if WITH_GUI
-                pushHistory(block, 0, sco->internal.maxNumberOfPoints);
-                deleteBufferPolylines(block);
-            #endif
+#ifdef WITH_GUI
+            pushHistory(block, 0, sco->internal.maxNumberOfPoints);
+            deleteBufferPolylines(block);
+#endif
             freeScoData(block);
             break;
 
@@ -695,7 +695,7 @@ static void setFigureSettings(int iFigureUID, scicos_block * block)
 
 static int getFigure(scicos_block * block)
 {
-#if WITH_GUI
+#ifdef WITH_GUI
     signed int figNum;
     int iFigureUID = 0;
     int iAxe = 0;