Index: trunk/MagicSoft/Mars/mmain/MAnalysis.cc
===================================================================
--- trunk/MagicSoft/Mars/mmain/MAnalysis.cc	(revision 2142)
+++ trunk/MagicSoft/Mars/mmain/MAnalysis.cc	(revision 2173)
@@ -24,5 +24,5 @@
 #include "MAnalysis.h"
 
-#include <iostream.h>
+#include <iostream>
 
 #include <TGLabel.h>       // TGlabel
@@ -33,5 +33,7 @@
 #include "MImgCleanStd.h"  // MImgCleanStd
 
-ClassImp(MAnalysis)
+ClassImp(MAnalysis);
+
+using namespace std;
 
 enum {
Index: trunk/MagicSoft/Mars/mmain/MBrowser.cc
===================================================================
--- trunk/MagicSoft/Mars/mmain/MBrowser.cc	(revision 2142)
+++ trunk/MagicSoft/Mars/mmain/MBrowser.cc	(revision 2173)
@@ -26,5 +26,5 @@
 #include "MBrowser.h"
 
-#include <iostream.h>
+#include <iostream>
 #include <sys/stat.h>       // S_ISDIR
 
@@ -45,4 +45,6 @@
 
 ClassImp(MBrowser);
+
+using namespace std;
 
 enum {
Index: trunk/MagicSoft/Mars/mmain/MMars.cc
===================================================================
--- trunk/MagicSoft/Mars/mmain/MMars.cc	(revision 2142)
+++ trunk/MagicSoft/Mars/mmain/MMars.cc	(revision 2173)
@@ -26,5 +26,5 @@
 #include "MMars.h"
 
-#include <iostream.h>
+#include <iostream>
 
 #include <TApplication.h>  // gROOT->GetApplication()->...
@@ -44,5 +44,7 @@
 #include "MCameraDisplay.h"
 
-ClassImp(MMars)
+ClassImp(MMars);
+
+using namespace std;
 
 enum {
@@ -94,5 +96,5 @@
         fList->Add(magic);
         magic->Associate(this);
-        TGLayoutHints *lay1 = new TGLayoutHints(kLHintsLeft,  10., 10., 20., 10.);
+        TGLayoutHints *lay1 = new TGLayoutHints(kLHintsLeft,  10, 10, 20, 10);
         fList->Add(lay1);
         top->AddFrame(magic, lay1);
@@ -105,5 +107,5 @@
         fList->Add(mars);
         mars->Associate(this);
-        TGLayoutHints *lay2 = new TGLayoutHints(kLHintsRight, 10., 10., 10., 10.);
+        TGLayoutHints *lay2 = new TGLayoutHints(kLHintsRight, 10, 10, 10, 10);
         fList->Add(lay2);
         top->AddFrame(mars,  lay2);
Index: trunk/MagicSoft/Mars/mmain/MMonteCarlo.cc
===================================================================
--- trunk/MagicSoft/Mars/mmain/MMonteCarlo.cc	(revision 2142)
+++ trunk/MagicSoft/Mars/mmain/MMonteCarlo.cc	(revision 2173)
@@ -27,5 +27,5 @@
 
 #include <stdlib.h>
-#include <iostream.h>
+#include <iostream>
 
 #include <TGLabel.h>        // TGLabel
@@ -37,5 +37,7 @@
 #include "MGList.h"
 
-ClassImp(MMonteCarlo)
+ClassImp(MMonteCarlo);
+
+using namespace std;
 
 enum {
Index: trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
===================================================================
--- trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc	(revision 2142)
+++ trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc	(revision 2173)
@@ -61,5 +61,5 @@
 #include "MStatusDisplay.h"
 
-#include <fstream.h>              // fstream
+#include <fstream>                // fstream
 
 #include <TLine.h>                // TLine
@@ -98,4 +98,6 @@
 
 ClassImp(MStatusDisplay);
+
+using namespace std;
 
 // ------------ Workaround for a non working TGTextView::Search -------------
@@ -1356,4 +1358,6 @@
     const TString newstr("%%DocumentPaperSizes: a4\n%%Orientation: Landscape");
 
+    // gcc 3.2:
+    /*
     fstream f(name, ios::in|ios::out|ios::nocreate);
 
@@ -1393,4 +1397,5 @@
     delete c2;
     delete c1;
+    */
 }
 
@@ -1770,7 +1775,7 @@
     // canculate new size of frame (canvas @ 1:sqrt(2))
     if (hchanged)
-        w = (UInt_t)((h-ch)*sqrt(2)+.5)+cw;
+        w = (UInt_t)((h-ch)*sqrt(2.)+.5)+cw;
     else
-        h = (UInt_t)((w-cw)/sqrt(2)+.5)+ch;
+        h = (UInt_t)((w-cw)/sqrt(2.)+.5)+ch;
 
     //cout << "Res: " << w << " " << h << " " << evt->fX << " " << evt->fY << endl;
