Changeset 24714 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Jul 27, 2007, 1:33:49 AM (18 years ago)
Author:
hausmann
Message:

Fix compilation with Qt on Windows with MingW: The MingW headers do not provide a prototype for a reentrant version of localtime. But since we don't use multiple threads for the Qt build we can use the plain localtime() function.

File:
1 edited

Legend:

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

    r20213 r24714  
    421421
    422422    tm localTM;
    423 #if PLATFORM(WIN_OS)
     423#if PLATFORM(QT)
     424    // ### this is not threadsafe but we don't use multiple threads anyway
     425    // in the Qt build
     426#if USE(MULTIPLE_THREADS)
     427#error Mulitple threads are currently not supported in the Qt/mingw build
     428#endif
     429    localTM = *localtime(&localTime);
     430#elif PLATFORM(WIN_OS)
    424431    localtime_s(&localTM, &localTime);
    425432#else
Note: See TracChangeset for help on using the changeset viewer.