Changeset 38699 in webkit
- Timestamp:
- Nov 24, 2008 12:09:56 AM (15 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r38697 r38699 1 2008-11-24 Joerg Bornemann <joerg.bornemann@trolltech.com> 2 3 Reviewed by Simon Hausmann. 4 5 https://bugs.webkit.org/show_bug.cgi?id=20746 6 7 Various small compilation fixes to make the Qt port of WebKit 8 compile on Windows CE. 9 10 * config.h: Don't set _CRT_RAND_S for CE, it's not available. 11 * jsc.cpp: Disabled use of debugger includes for CE. It 12 does not have the debugging functions. 13 * runtime/DateMath.cpp: Use localtime() on Windows CE. 14 * wtf/Assertions.cpp: Compile on Windows CE without debugger. 15 * wtf/Assertions.h: Include windows.h before defining ASSERT. 16 * wtf/MathExtras.h: Include stdlib.h instead of xmath.h. 17 * wtf/Platform.h: Disable ERRNO_H and detect endianess based 18 on the Qt endianess. On Qt for Windows CE the endianess is 19 defined by the vendor specific build spec. 20 * wtf/Threading.h: Use the volatile-less atomic functions. 21 * wtf/dtoa.cpp: Compile without errno. 22 * wtf/win/MainThreadWin.cpp: Don't include windows.h on CE after 23 Assertions.h due to the redefinition of ASSERT. 24 1 25 2008-11-22 Gavin Barraclough <barraclough@apple.com> 2 26 -
trunk/JavaScriptCore/config.h
r38114 r38699 33 33 #define min min 34 34 35 #if !COMPILER(MSVC7) 35 #if !COMPILER(MSVC7) && !PLATFORM(WIN_CE) 36 36 // We need to define this before the first #include of stdlib.h or it won't contain rand_s. 37 37 #ifndef _CRT_RAND_S -
trunk/JavaScriptCore/jsc.cpp
r38523 r38699 52 52 #endif 53 53 54 #if COMPILER(MSVC) 54 #if COMPILER(MSVC) && !PLATFORM(WIN_CE) 55 55 #include <crtdbg.h> 56 56 #include <windows.h> … … 257 257 cleanupGlobalData(&exec->globalData()); 258 258 exit(EXIT_SUCCESS); 259 #if !COMPILER(MSVC) 259 #if !COMPILER(MSVC) && !PLATFORM(WIN_CE) 260 260 // MSVC knows that exit(0) never returns, so it flags this return statement as unreachable. 261 261 return jsUndefined(); -
trunk/JavaScriptCore/runtime/DateMath.cpp
r38176 r38699 414 414 void getLocalTime(const time_t* localTime, struct tm* localTM) 415 415 { 416 #if COMPILER(MSVC7) || COMPILER(MINGW) 416 #if COMPILER(MSVC7) || COMPILER(MINGW) || PLATFORM(WIN_CE) 417 417 *localTM = *localtime(localTime); 418 418 #elif COMPILER(MSVC) -
trunk/JavaScriptCore/wtf/Assertions.cpp
r35900 r38699 35 35 #endif 36 36 37 #if COMPILER(MSVC) 37 #if COMPILER(MSVC) && !PLATFORM(WIN_CE) 38 38 #ifndef WINVER 39 39 #define WINVER 0x0500 … … 67 67 CFRelease(cfFormat); 68 68 } else 69 #elif COMPILER(MSVC) 69 #elif COMPILER(MSVC) && !PLATFORM(WIN_CE) 70 70 if (IsDebuggerPresent()) { 71 71 size_t size = 1024; -
trunk/JavaScriptCore/wtf/Assertions.h
r38673 r38699 129 129 /* ASSERT, ASSERT_WITH_MESSAGE, ASSERT_NOT_REACHED */ 130 130 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 131 139 #if PLATFORM(WIN_OS) 132 140 /* FIXME: Change to use something other than ASSERT to avoid this conflict with win32. */ -
trunk/JavaScriptCore/wtf/MathExtras.h
r38177 r38699 41 41 42 42 #if COMPILER(MSVC) 43 43 #if PLATFORM(WIN_CE) 44 #include <stdlib.h> 45 #else 44 46 #include <xmath.h> 47 #endif 45 48 #include <limits> 46 49 -
trunk/JavaScriptCore/wtf/Platform.h
r38487 r38699 211 211 #endif 212 212 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 213 227 /* Compiler */ 214 228 … … 325 339 326 340 #define HAVE_FLOAT_H 1 341 #if PLATFORM(WIN_CE) 342 #define HAVE_ERRNO_H 0 343 #else 327 344 #define HAVE_SYS_TIMEB_H 1 345 #endif 328 346 #define HAVE_VIRTUALALLOC 1 329 347 -
trunk/JavaScriptCore/wtf/Threading.h
r38101 r38699 60 60 #define Threading_h 61 61 62 #if PLATFORM(WIN_CE) 63 #include <windows.h> 64 #endif 65 62 66 #include <wtf/Assertions.h> 63 67 #include <wtf/Locker.h> 64 68 #include <wtf/Noncopyable.h> 65 69 66 #if PLATFORM(WIN_OS) 70 #if PLATFORM(WIN_OS) && !PLATFORM(WIN_CE) 67 71 #include <windows.h> 68 72 #elif PLATFORM(DARWIN) … … 175 179 #define WTF_USE_LOCKFREE_THREADSAFESHARED 1 176 180 177 #if COMPILER(MINGW) || COMPILER(MSVC7) 181 #if COMPILER(MINGW) || COMPILER(MSVC7) || PLATFORM(WIN_CE) 178 182 inline void atomicIncrement(int* addend) { InterlockedIncrement(reinterpret_cast<long*>(addend)); } 179 183 inline int atomicDecrement(int* addend) { return InterlockedDecrement(reinterpret_cast<long*>(addend)); } -
trunk/JavaScriptCore/wtf/dtoa.cpp
r38390 r38699 136 136 #include "dtoa.h" 137 137 138 #if HAVE(ERRNO_H) 138 139 #include <errno.h> 140 #else 141 #define NO_ERRNO 142 #endif 139 143 #include <float.h> 140 144 #include <math.h> -
trunk/JavaScriptCore/wtf/win/MainThreadWin.cpp
r36062 r38699 32 32 #include "Assertions.h" 33 33 #include "Threading.h" 34 #if !PLATFORM(WIN_CE) 34 35 #include <windows.h> 36 #endif 35 37 36 38 namespace WTF {
Note: See TracChangeset
for help on using the changeset viewer.