| Index: Source/wtf/Assertions.cpp
|
| diff --git a/Source/wtf/Assertions.cpp b/Source/wtf/Assertions.cpp
|
| index 8046f6a7c926165490865a86aed75d17bd517c23..8eb3c8f14ef8dbecb324ca06d701be0f45fe7e1b 100644
|
| --- a/Source/wtf/Assertions.cpp
|
| +++ b/Source/wtf/Assertions.cpp
|
| @@ -53,7 +53,7 @@
|
| #endif
|
| #endif // USE(CF)
|
|
|
| -#if COMPILER(MSVC) && !OS(WINCE)
|
| +#if COMPILER(MSVC)
|
| #include <crtdbg.h>
|
| #endif
|
|
|
| @@ -126,20 +126,7 @@ static void vprintf_stderr_common(const char* format, va_list args)
|
| break;
|
|
|
| if (_vsnprintf(buffer, size, format, args) != -1) {
|
| -#if OS(WINCE)
|
| - // WinCE only supports wide chars
|
| - wchar_t* wideBuffer = (wchar_t*)malloc(size * sizeof(wchar_t));
|
| - if (wideBuffer == NULL)
|
| - break;
|
| - for (unsigned int i = 0; i < size; ++i) {
|
| - if (!(wideBuffer[i] = buffer[i]))
|
| - break;
|
| - }
|
| - OutputDebugStringW(wideBuffer);
|
| - free(wideBuffer);
|
| -#else
|
| OutputDebugStringA(buffer);
|
| -#endif
|
| free(buffer);
|
| break;
|
| }
|
| @@ -200,7 +187,7 @@ static void printf_stderr_common(const char* format, ...)
|
|
|
| static void printCallSite(const char* file, int line, const char* function)
|
| {
|
| -#if OS(WINDOWS) && !OS(WINCE) && defined(_DEBUG)
|
| +#if OS(WINDOWS) && defined(_DEBUG)
|
| _CrtDbgReport(_CRT_WARN, file, line, NULL, "%s\n", function);
|
| #else
|
| // By using this format, which matches the format used by MSVC for compiler errors, developers
|
| @@ -239,7 +226,7 @@ void WTFGetBacktrace(void** stack, int* size)
|
| {
|
| #if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID)
|
| *size = backtrace(stack, *size);
|
| -#elif OS(WINDOWS) && !OS(WINCE)
|
| +#elif OS(WINDOWS)
|
| // The CaptureStackBackTrace function is available in XP, but it is not defined
|
| // in the Windows Server 2003 R2 Platform SDK. So, we'll grab the function
|
| // through GetProcAddress.
|
|
|