Changeset 38699 in webkit for trunk/JavaScriptCore/wtf/Platform.h


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

    r38487 r38699  
    211211#endif
    212212
     213/* PLATFORM(WIN_CE) && PLATFORM(QT)
     214   We can not determine the endianess at compile time. For
     215   Qt for Windows CE the endianess is specified in the
     216   device specific makespec
     217*/
     218#if PLATFORM(WIN_CE) && PLATFORM(QT)
     219#   include <QtGlobal>
     220#   undef WTF_PLATFORM_BIG_ENDIAN
     221#   undef WTF_PLATFORM_MIDDLE_ENDIAN
     222#   if Q_BYTE_ORDER == Q_BIG_EDIAN
     223#       define WTF_PLATFORM_BIG_ENDIAN 1
     224#   endif
     225#endif
     226
    213227/* Compiler */
    214228
     
    325339
    326340#define HAVE_FLOAT_H 1
     341#if PLATFORM(WIN_CE)
     342#define HAVE_ERRNO_H 0
     343#else
    327344#define HAVE_SYS_TIMEB_H 1
     345#endif
    328346#define HAVE_VIRTUALALLOC 1
    329347
Note: See TracChangeset for help on using the changeset viewer.