Bug 250701 - webkit2 public header include error
Summary: webkit2 public header include error
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-17 00:36 PST by Thomas Devoogdt
Modified: 2023-01-17 05:46 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Devoogdt 2023-01-17 00:36:13 PST
Since commit 654646fe6187abcf9ced6a3ace80eaf04754fd39, the webkit.h file is generated
and does only define __WEBKIT_H_INSIDE__. So replace the only remaining __WEBKIT2_H_INSIDE__
defines to avoid any "Only <webkit2/webkit2.h> can be included directly." error.

In file included from /home/thomas/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/webkitgtk-4.1/webkit2/webkit2.h:81,
                 from /home/thomas/buildroot/output/build/barco-browser-304bc1b4a82ff20e7c5e2ab8eaf1cd2611812efe/main.c:14:
/home/thomas/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/webkitgtk-4.1/webkit/WebKitURISchemeResponse.h:21:2: error: #error "Only <webkit2/webkit2.h> can be included directly."
   21 | #error "Only <webkit2/webkit2.h> can be included directly."
      |  ^~~~~
Comment 1 EWS 2023-01-17 00:56:52 PST
Committed 258974@main (9fe47e98a7f3): <https://commits.webkit.org/258974@main>

Reviewed commits have been landed. Closing PR #8713 and removing active labels.
Comment 2 EWS 2023-01-17 05:46:45 PST
Committed 258976@main (8f11ad0813c3): <https://commits.webkit.org/258976@main>

Reviewed commits have been landed. Closing PR #8718 and removing active labels.