Index: trunk/Mars/mcore/fits.h
===================================================================
--- trunk/Mars/mcore/fits.h	(revision 20109)
+++ trunk/Mars/mcore/fits.h	(revision 20115)
@@ -475,5 +475,5 @@
         // There may be a gap between the main table and the start of the heap:
         // this computes the offset
-        streamoff GetHeapShift() const
+        std::streamoff GetHeapShift() const
         {
             if (!HasKey("ZHEAPPTR"))
@@ -485,14 +485,14 @@
 
         // return total number of bytes 'all inclusive'
-        streamoff GetTotalBytes() const
+        std::streamoff GetTotalBytes() const
         {
             //get offset of special data area from start of main table
-            const streamoff shift = GetHeapShift();
+            const std::streamoff shift = GetHeapShift();
 
             //and special data area size
-            const streamoff size  = HasKey("PCOUNT") ? Get<streamoff>("PCOUNT") : 0;
+            const std::streamoff size  = HasKey("PCOUNT") ? Get<std::streamoff>("PCOUNT") : 0;
 
             // Get the total size
-            const streamoff total = total_bytes + size + shift;
+            const std::streamoff total = total_bytes + size + shift;
 
             // check for padding
@@ -684,5 +684,5 @@
                 if ((!tableName.empty() && tableName!=tname) || (tableName.empty() && "ZDrsCellOffsets"==tname))
                 {
-                    const streamoff skip = fTable.GetTotalBytes();
+                    const std::streamoff skip = fTable.GetTotalBytes();
                     seekg(skip, std::ios_base::cur);
 
@@ -720,5 +720,5 @@
         }
 
-        const streampos p = tellg();
+        const std::streampos p = tellg();
         seekg(0);
 
Index: trunk/Mars/mcore/izstream.h
===================================================================
--- trunk/Mars/mcore/izstream.h	(revision 20109)
+++ trunk/Mars/mcore/izstream.h	(revision 20115)
@@ -139,10 +139,10 @@
         }
 
-        const streampos pos = gzseek(fFile, offset-sbuf, SEEK_CUR);
+        const std::streampos pos = gzseek(fFile, offset-sbuf, SEEK_CUR);
 
         // Buffer is empty - force refilling
         setg(fBuffer+4, fBuffer+4, fBuffer+4);
 
-        return pos<0 ? streampos(EOF) : pos;
+        return pos<0 ? std::streampos(EOF) : pos;
 
         /*
Index: trunk/Mars/mcore/zfits.h
===================================================================
--- trunk/Mars/mcore/zfits.h	(revision 20109)
+++ trunk/Mars/mcore/zfits.h	(revision 20115)
@@ -145,6 +145,6 @@
     size_t fShrinkFactor;   ///< shrink factor
 
-    streamoff fHeapOff;           ///< offset from the beginning of the file of the binary data
-    streamoff fHeapFromDataStart; ///< offset from the beginning of the data table
+    std::streamoff fHeapOff;           ///< offset from the beginning of the file of the binary data
+    std::streamoff fHeapFromDataStart; ///< offset from the beginning of the data table
 
     std::vector<std::vector<std::pair<int64_t, int64_t>>> fCatalog;     ///< Catalog, i.e. the main table that points to the compressed data.
@@ -184,5 +184,5 @@
         fCatalog.resize(fNumTiles);
 
-        const streampos catalogStart = tellg();
+        const std::streampos catalogStart = tellg();
 
         fChkData.reset();
@@ -569,5 +569,5 @@
     {
         //goto start of heap
-        const streamoff whereAreWe = tellg();
+        const std::streamoff whereAreWe = tellg();
         seekg(fHeapOff);
 
@@ -583,5 +583,5 @@
         FITS::BlockHeader columnHead;
 
-        streamoff offsetInHeap = 0;
+        std::streamoff offsetInHeap = 0;
         //skip through the heap
         while (true)
