Changeset 1101 in Sophya for trunk/SophyaLib/BaseTools


Ignore:
Timestamp:
Jul 26, 2000, 6:33:06 PM (25 years ago)
Author:
ansari
Message:

Compil sous KCC , Reza 26/7/2000

File:
1 edited

Legend:

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

    r1063 r1101  
    432432
    433433  // Find tag entries at end of file
    434 #if !defined(Linux)
    435   s->seekg(-(sizeof(int_8)+1), ios::end);
    436 #else
    437   // There seems to be a bug where seekg with ios::end under Linux 
     434#if defined(Linux) &&  defined(__GNUG__)
     435  // There seems to be a bug where seekg with ios::end under Linux  with g++
    438436  // So, we use seek with ios::beg
    439437  s->seekg(0, ios::end);
    440438  int_8 tagpos = s->tellg() - (sizeof(int_8)+1);
    441439  s->seekg(tagpos, ios::beg);
     440#else
     441  s->seekg(-(sizeof(int_8)+1), ios::end);
    442442#endif
    443443
Note: See TracChangeset for help on using the changeset viewer.