Changeset 137054 in webkit


Ignore:
Timestamp:
Dec 8, 2012 6:30:39 PM (11 years ago)
Author:
Patrick Gansterer
Message:

Compiling WTF outside of WebKit failed on Windows
https://bugs.webkit.org/show_bug.cgi?id=100201

Reviewed by Darin Adler.

Explicitly use the Unicode variants of the Windows API to
allow building the WTF library without the UNICODE define.

  • wtf/win/MainThreadWin.cpp:

(WTF::initializeMainThreadPlatform):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r137032 r137054  
     12012-12-08  Patrick Gansterer  <paroga@webkit.org>
     2
     3        Compiling WTF outside of WebKit failed on Windows
     4        https://bugs.webkit.org/show_bug.cgi?id=100201
     5
     6        Reviewed by Darin Adler.
     7
     8        Explicitly use the Unicode variants of the Windows API to
     9        allow building the WTF library without the UNICODE define.
     10
     11        * wtf/win/MainThreadWin.cpp:
     12        (WTF::initializeMainThreadPlatform):
     13
    1142012-12-08  Gustavo Noronha Silva  <gns@gnome.org>
    215
  • trunk/Source/WTF/wtf/win/MainThreadWin.cpp

    r111778 r137054  
    3333#include "Assertions.h"
    3434#include "Threading.h"
    35 #if !OS(WINCE)
    3635#include <windows.h>
    37 #endif
    3836
    3937namespace WTF {
     
    5856
    5957    HWND hWndParent = 0;
    60 #if OS(WINCE)
    61     WNDCLASS wcex;
    62     memset(&wcex, 0, sizeof(WNDCLASS));
    63 #else
    64     WNDCLASSEX wcex;
    65     memset(&wcex, 0, sizeof(WNDCLASSEX));
    66     wcex.cbSize = sizeof(WNDCLASSEX);
    67 #endif
     58    WNDCLASSW wcex;
     59    memset(&wcex, 0, sizeof(WNDCLASSW));
    6860    wcex.lpfnWndProc    = ThreadingWindowWndProc;
    6961    wcex.lpszClassName  = kThreadingWindowClassName;
    70 #if OS(WINCE)
    71     RegisterClass(&wcex);
    72 #else
    73     RegisterClassEx(&wcex);
     62    RegisterClassW(&wcex);
     63#if !OS(WINCE)
    7464    hWndParent = HWND_MESSAGE;
    7565#endif
    7666
    77     threadingWindowHandle = CreateWindow(kThreadingWindowClassName, 0, 0,
     67    threadingWindowHandle = CreateWindowW(kThreadingWindowClassName, 0, 0,
    7868       CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, hWndParent, 0, 0, 0);
    79     threadingFiredMessage = RegisterWindowMessage(L"com.apple.WebKit.MainThreadFired");
     69    threadingFiredMessage = RegisterWindowMessageW(L"com.apple.WebKit.MainThreadFired");
    8070
    8171    initializeCurrentThreadInternal("Main Thread");
Note: See TracChangeset for help on using the changeset viewer.