Changeset 613 for trunk/src/core


Ignore:
Timestamp:
Mar 8, 2007, 12:27:02 PM (18 years ago)
Author:
nkissebe
Message:

RpLibrary?.cc, RpUnits.cc: include <algorithm> for MS compiler
RpLibrary?.cc: specify std:: namespace when calling transform
RpLibrary?.cc: MSC++ doesn't have timezone in struct tm

Location:
trunk/src/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/RpLibrary.cc

    r605 r613  
    1414#include "RpLibrary.h"
    1515#include "RpEntityRef.h"
    16 
     16#include <algorithm>
    1717static RpEntityRef ERTranslator;
    1818
     
    13111311
    13121312    retValStr = this->getString(path);
    1313     transform (retValStr.begin(),retValStr.end(),retValStr.begin(),tolower);
     1313    std::transform (retValStr.begin(),retValStr.end(),retValStr.begin(),tolower);
    13141314    retValLen = retValStr.length();
    13151315
     
    18191819        // concatinate the timezone
    18201820        timestamp.append(" ");
     1821#ifdef _WIN32
     1822        timestamp.append(_tzname[_daylight]);
     1823#else
    18211824        timestamp.append(timeinfo->tm_zone);
     1825#endif
    18221826
    18231827        // add the timestamp to the run file
  • trunk/src/core/RpUnits.cc

    r593 r613  
    1515
    1616#include "RpUnits.h"
     17#include <algorithm>
    1718
    1819// dict pointer
Note: See TracChangeset for help on using the changeset viewer.