Changeset 24714 in webkit for trunk/JavaScriptCore


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.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r24711 r24714  
     12007-07-27  Simon Hausmann  <[email protected]>
     2
     3        Done with and reviewed by Lars and Zack.
     4
     5        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.
     6
     7        * kjs/DateMath.cpp:
     8        (KJS::getDSTOffsetSimple):
     9
    1102007-07-27  Simon Hausmann  <[email protected]>
    211
  • 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.