Changes needed on HP and Alpha
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Apr 2004 09:53:14 +0000 (09:53 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Apr 2004 09:53:14 +0000 (09:53 +0000)
ITS/AliITSspdTestBeam.cxx
TPC/AliTPCDDLRawData.cxx

index 205f0e4..7d994ea 100644 (file)
@@ -198,7 +198,11 @@ Int_t AliITSspdTestBeam::OpenInputFile(const Char_t *filename,Int_t start,Int_t
        delete [] tmp;
     } // end if
     // Open file
+#ifndef __DECCXX
     fFiles[fNfiles] = new ifstream(filename,ios::in|ios::binary);
+#else
+    fFiles[fNfiles] = new ifstream(filename,ios::in);
+#endif
     if(fFiles[fNfiles]==0){// file open error
         cout << "Error opening input file " << filename << endl;
         stat = -1;
index 1b06334..bbdbd51 100644 (file)
@@ -184,7 +184,11 @@ Int_t AliTPCDDLRawData::RawDataCompDecompress(Bool_t compress){
 #else
     f.open(filename,ios::in);
 #endif
+#if defined(__HP_aCC) || defined(__DECCXX)
+    if(!f.rdbuf()->is_open()){f.clear(); continue;}
+#else
     if(!f.is_open()){f.clear(); continue;}
+#endif
     if (fVerbose)
       Info("RawDataCompDecompress", "&s -> dest.ddl", filename);
     ofstream fdest;