Changeset 1063 in Sophya for trunk


Ignore:
Timestamp:
Jul 11, 2000, 2:39:53 PM (25 years ago)
Author:
ansari
Message:

Contournement du Pb ifstream::seekg(ios::end) pour Linux-g++ ds ppersist.cc , Reza 11/07/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/ppersist.cc

    r871 r1063  
    432432
    433433  // Find tag entries at end of file
     434#if !defined(Linux)
    434435  s->seekg(-(sizeof(int_8)+1), ios::end);
     436#else
     437  // There seems to be a bug where seekg with ios::end under Linux 
     438  // So, we use seek with ios::beg
     439  s->seekg(0, ios::end);
     440  int_8 tagpos = s->tellg() - (sizeof(int_8)+1);
     441  s->seekg(tagpos, ios::beg);
     442#endif
     443
    435444  GetTypeTag(ppstype);
    436445  if (ppstype != PPS_EOF)
Note: See TracChangeset for help on using the changeset viewer.