Changeset 128033 in webkit


Ignore:
Timestamp:
Sep 10, 2012 2:09:14 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[WK2] Make WK2 C API headers compile in the Qt build on Windows
https://bugs.webkit.org/show_bug.cgi?id=96246

Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2012-09-10
Reviewed by Kenneth Rohde Christiansen.

WKBase.h and WKAPICast.h include files that are specific to the Safari/Windows
port if WIN32 or _WIN32 is defined. When building WebKit2 on Windows with Qt, we
do not want to include these files, as they define an API that is different to ours
(the view aspect differs). Therefore guard the inclusion with !defined(BUILDING_QT)

  • Shared/API/c/WKBase.h:
  • UIProcess/API/C/WKAPICast.h:
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r128031 r128033  
     12012-09-10  Simon Hausmann  <simon.hausmann@nokia.com>
     2
     3        [WK2] Make WK2 C API headers compile in the Qt build on Windows
     4        https://bugs.webkit.org/show_bug.cgi?id=96246
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        WKBase.h and WKAPICast.h include files that are specific to the Safari/Windows
     9        port if WIN32 or _WIN32 is defined. When building WebKit2 on Windows with Qt, we
     10        do not want to include these files, as they define an API that is different to ours
     11        (the view aspect differs). Therefore guard the inclusion with !defined(BUILDING_QT__)
     12
     13        * Shared/API/c/WKBase.h:
     14        * UIProcess/API/C/WKAPICast.h:
     15
    1162012-09-10  Kevin Funk  <kevin.funk@kdab.com>
    217
  • trunk/Source/WebKit2/Shared/API/c/WKBase.h

    r126453 r128033  
    3030#include <stdint.h>
    3131
    32 #if defined(WIN32) || defined(_WIN32)
     32#if (defined(WIN32) || defined(_WIN32)) && !defined(BUILDING_QT__)
    3333#include <WebKit2/WKBaseWin.h>
    3434#endif
  • trunk/Source/WebKit2/UIProcess/API/C/WKAPICast.h

    r127956 r128033  
    424424} // namespace WebKit
    425425
    426 #if defined(WIN32) || defined(_WIN32)
     426#if (defined(WIN32) || defined(_WIN32)) && !defined(BUILDING_QT__)
    427427#include "WKAPICastWin.h"
    428428#endif
Note: See TracChangeset for help on using the changeset viewer.