Ignore:
Timestamp:
Jul 17, 2008, 5:01:57 AM (17 years ago)
Author:
Simon Hausmann
Message:

2008-07-17 Ariya Hidayat <[email protected]>

Reviewed by Simon.

Fix MinGW build (broken in r35198) and simplify getLocalTime().

  • kjs/DateMath.cpp: (KJS::getLocalTime):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/DateMath.cpp

    r35198 r35220  
    310310void getLocalTime(const time_t* localTime, struct tm* localTM)
    311311{
    312 #if PLATFORM(WIN_OS)
    313 #if COMPILER(MSVC7)
     312#if COMPILER(MSVC7) || COMPILER(MINGW)
    314313    *localTM = *localtime(localTime);
    315 #else
     314#elif COMPILER(MSVC)
    316315    localtime_s(localTM, localTime);
    317 #endif
    318 #elif PLATFORM(QT)
    319 #if USE(MULTIPLE_THREADS)
    320 #error Multiple threads are currently not supported in the Qt/mingw build
    321 #endif
    322     *localTM = *localtime(localTime);
    323316#else
    324317    localtime_r(localTime, localTM);
Note: See TracChangeset for help on using the changeset viewer.