Ignore:
Timestamp:
Nov 24, 2008, 12:09:56 AM (17 years ago)
Author:
Simon Hausmann
Message:

2008-11-24 Joerg Bornemann <[email protected]>

Reviewed by Simon Hausmann.

https://bugs.webkit.org/show_bug.cgi?id=20746

Various small compilation fixes to make the Qt port of WebKit
compile on Windows CE.

  • config.h: Don't set _CRT_RAND_S for CE, it's not available.
  • jsc.cpp: Disabled use of debugger includes for CE. It does not have the debugging functions.
  • runtime/DateMath.cpp: Use localtime() on Windows CE.
  • wtf/Assertions.cpp: Compile on Windows CE without debugger.
  • wtf/Assertions.h: Include windows.h before defining ASSERT.
  • wtf/MathExtras.h: Include stdlib.h instead of xmath.h.
  • wtf/Platform.h: Disable ERRNO_H and detect endianess based on the Qt endianess. On Qt for Windows CE the endianess is defined by the vendor specific build spec.
  • wtf/Threading.h: Use the volatile-less atomic functions.
  • wtf/dtoa.cpp: Compile without errno.
  • wtf/win/MainThreadWin.cpp: Don't include windows.h on CE after Assertions.h due to the redefinition of ASSERT.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Threading.h

    r38101 r38699  
    6060#define Threading_h
    6161
     62#if PLATFORM(WIN_CE)
     63#include <windows.h>
     64#endif
     65
    6266#include <wtf/Assertions.h>
    6367#include <wtf/Locker.h>
    6468#include <wtf/Noncopyable.h>
    6569
    66 #if PLATFORM(WIN_OS)
     70#if PLATFORM(WIN_OS) && !PLATFORM(WIN_CE)
    6771#include <windows.h>
    6872#elif PLATFORM(DARWIN)
     
    175179#define WTF_USE_LOCKFREE_THREADSAFESHARED 1
    176180
    177 #if COMPILER(MINGW) || COMPILER(MSVC7)
     181#if COMPILER(MINGW) || COMPILER(MSVC7) || PLATFORM(WIN_CE)
    178182inline void atomicIncrement(int* addend) { InterlockedIncrement(reinterpret_cast<long*>(addend)); }
    179183inline int atomicDecrement(int* addend) { return InterlockedDecrement(reinterpret_cast<long*>(addend)); }
Note: See TracChangeset for help on using the changeset viewer.