Changeset 30108 in webkit


Ignore:
Timestamp:
Feb 9, 2008, 12:13:39 AM (17 years ago)
Author:
kevino@webkit.org
Message:

MSVC7 fixes.
http://bugs.webkit.org/show_bug.cgi?id=17211

Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r30107 r30108  
     12008-02-07  Kevin Ollivier <kevino@theolliviers.com>
     2
     3        Reviewed by Eric Seidel, Adam Roben.
     4
     5        MSVC7 fixes.
     6        http://bugs.webkit.org/show_bug.cgi?id=17211
     7
     8        * platform/Threading.h:
     9        - On MSVC7, when the Interlocked* functions are used, the ref count gets out of sync.
     10          (MSVC8 seems not to have this problem.) Use the old implementation which works correctly.
     11        * platform/win/SharedTimerWin.cpp:
     12        - USER_TIMER_MINIMUM/MAXIMUM aren't defined in winuser.h for the MSVC 2003 Platform SDK
     13          so define them if they are not already defined.
     14
    1152008-02-08  Brent Fulgham  <bfulgham@gmail.com>
    216
  • trunk/WebCore/platform/Threading.h

    r29922 r30108  
    161161};
    162162
    163 #if PLATFORM(WIN_OS)
     163#if PLATFORM(WIN_OS) && !COMPILER(MSVC7)
    164164#define WTF_USE_LOCKFREE_THREADSAFESHARED 1
    165165
  • trunk/WebCore/platform/win/SharedTimerWin.cpp

    r30015 r30108  
    4040
    4141#include <windows.h>
     42
     43// These aren't in winuser.h with the MSVS 2003 Platform SDK,
     44// so use default values in that case.
     45#ifndef USER_TIMER_MINIMUM
     46#define USER_TIMER_MINIMUM 0x0000000A
     47#endif
     48
     49#ifndef USER_TIMER_MAXIMUM
     50#define USER_TIMER_MAXIMUM 0x7FFFFFFF
     51#endif
    4252
    4353#if PLATFORM(WIN)
Note: See TracChangeset for help on using the changeset viewer.