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/Assertions.h

    r38673 r38699  
    129129/* ASSERT, ASSERT_WITH_MESSAGE, ASSERT_NOT_REACHED */
    130130
     131#if PLATFORM(WIN_CE)
     132/* FIXME: We include this here only to avoid a conflict with the ASSERT macro. */
     133#include <windows.h>
     134#undef min
     135#undef max
     136#undef ERROR
     137#endif
     138
    131139#if PLATFORM(WIN_OS)
    132140/* FIXME: Change to use something other than ASSERT to avoid this conflict with win32. */
Note: See TracChangeset for help on using the changeset viewer.