Title: [164940] trunk/Source/WebKit2
- Revision
- 164940
- Author
- [email protected]
- Date
- 2014-03-02 06:59:47 -0800 (Sun, 02 Mar 2014)
Log Message
[GTK] Make impossible to build with <webkit2/webkit2.h> and <webkit2/webkit-web-extension.h> included together
https://bugs.webkit.org/show_bug.cgi?id=129549
Reviewed by Martin Robinson.
Add a compile error to prevent mixing the UI and web process APIs.
* UIProcess/API/gtk/webkit2.h:
* WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (164939 => 164940)
--- trunk/Source/WebKit2/ChangeLog 2014-03-02 14:56:54 UTC (rev 164939)
+++ trunk/Source/WebKit2/ChangeLog 2014-03-02 14:59:47 UTC (rev 164940)
@@ -1,5 +1,17 @@
2014-03-02 Carlos Garcia Campos <[email protected]>
+ [GTK] Make impossible to build with <webkit2/webkit2.h> and <webkit2/webkit-web-extension.h> included together
+ https://bugs.webkit.org/show_bug.cgi?id=129549
+
+ Reviewed by Martin Robinson.
+
+ Add a compile error to prevent mixing the UI and web process APIs.
+
+ * UIProcess/API/gtk/webkit2.h:
+ * WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h:
+
+2014-03-02 Carlos Garcia Campos <[email protected]>
+
[GTK] Remove the include dir of the C API from the WebKit2 pkg-config file
https://bugs.webkit.org/show_bug.cgi?id=129543
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/webkit2.h (164939 => 164940)
--- trunk/Source/WebKit2/UIProcess/API/gtk/webkit2.h 2014-03-02 14:56:54 UTC (rev 164939)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/webkit2.h 2014-03-02 14:59:47 UTC (rev 164940)
@@ -18,9 +18,13 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef __WEBKIT2_H__
-#define __WEBKIT2_H__
+#ifdef __WEBKIT_WEB_EXTENSION_H__
+#error "Headers <webkit2/webkit2.h> and <webkit2/webkit-web-extension.h> cannot be included together."
+#endif
+#ifndef __WEBKIT_2_H__
+#define __WEBKIT_2_H__
+
#define __WEBKIT2_H_INSIDE__
#include <webkit2/WebKitAuthenticationRequest.h>
Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h (164939 => 164940)
--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h 2014-03-02 14:56:54 UTC (rev 164939)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/gtk/webkit-web-extension.h 2014-03-02 14:59:47 UTC (rev 164940)
@@ -17,9 +17,13 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef __WebKitWebExtension_h
-#define __WebKitWebExtension_h
+#ifdef __WEBKIT_2_H__
+#error "Headers <webkit2/webkit2.h> and <webkit2/webkit-web-extension.h> cannot be included together."
+#endif
+#ifndef __WEBKIT_WEB_EXTENSION_H__
+#define __WEBKIT_WEB_EXTENSION_H__
+
#define __WEBKIT_WEB_EXTENSION_H_INSIDE__
#include <webkit2/WebKitFrame.h>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes