Skip to content

Commit

Permalink
[WPE] Fix the build with ENABLE_WPE_PLATFORM=OFF
Browse files Browse the repository at this point in the history
Unreviewed build fix.

* Source/WebKit/UIProcess/API/glib/WebKitWebView.h.in: Add guards around
parts that depend on the new unreleased platform API.
  • Loading branch information
aperezdc committed Mar 20, 2024
1 parent dba426f commit 09fd306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/WebKit/UIProcess/API/glib/WebKitWebView.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
#include <wpe/WebKitColor.h>
#include <wpe/WebKitRectangle.h>
#include <wpe/WebKitWebViewBackend.h>
#if ENABLE(2022_GLIB_API)
#if ENABLE(2022_GLIB_API) && ENABLE(WPE_PLATFORM)
#include <wpe/wpe-platform.h>
#endif
#endif
Expand Down Expand Up @@ -472,7 +472,7 @@ webkit_web_view_new_with_user_content_manager (WebKitWebViewBackend
WEBKIT_API WebKitWebViewBackend *
webkit_web_view_get_backend (WebKitWebView *web_view);

#if ENABLE(2022_GLIB_API)
#if ENABLE(2022_GLIB_API) && ENABLE(WPE_PLATFORM)
WEBKIT_API WPEDisplay *
webkit_web_view_get_display (WebKitWebView *web_view);

Expand Down

0 comments on commit 09fd306

Please sign in to comment.