From f4d48471e227d560d1ba386483fed0407a4197df Mon Sep 17 00:00:00 2001 From: Ryuan Choi Date: Thu, 9 Jan 2014 21:10:57 +0900 Subject: [PATCH] web: Move EWebKit headers out of Elementary.h again Since rELM166ca9e86a72, I moved EWebKit header into Elementary.h like other libraries. But, it made possible build break while building test browser in webkit. It's because EWebKit.h and EWebKit2.h have same symbols and test browser should be compiled with EWebKit2.h although Elementary was built with ewebkit. This patch reverts a part of changes in rELM166ca9e86a72, which includes EWebkit.h in Elementary.h --- src/lib/Elementary.h.in | 8 -------- src/lib/elm_web.c | 1 + src/lib/elm_web2.c | 1 + 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index c2a8660..30164d9 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -93,14 +93,6 @@ #include #endif -#ifdef ELM_WEB -#include -#endif - -#ifdef ELM_WEB2 -#include -#endif - #ifdef EAPI # undef EAPI #endif diff --git a/src/lib/elm_web.c b/src/lib/elm_web.c index c9bac2a..24059ea 100644 --- a/src/lib/elm_web.c +++ b/src/lib/elm_web.c @@ -22,6 +22,7 @@ EAPI Eo_Op ELM_OBJ_WEB_BASE_ID = EO_NOOP; #define MY_CLASS_NAME_LEGACY "elm_web" #ifdef HAVE_ELEMENTARY_WEB +#include /* Similar to iPhone */ // TODO: switch between iPhone, iPad or Chrome/Safari based on some diff --git a/src/lib/elm_web2.c b/src/lib/elm_web2.c index be4ecd2..b042ec1 100644 --- a/src/lib/elm_web2.c +++ b/src/lib/elm_web2.c @@ -8,6 +8,7 @@ #include "elm_widget_web.h" #if defined(HAVE_ELEMENTARY_WEB) && defined(USE_WEBKIT2) +#include EAPI Eo_Op ELM_OBJ_WEB_BASE_ID = EO_NOOP; -- 2.7.4