From: Enlightenment S. <no-...@en...> - 2011-10-13 07:38:34
|
Log: elementary: fix compile without webkit. Author: cedric Date: 2011-10-13 00:38:27 -0700 (Thu, 13 Oct 2011) New Revision: 64040 Trac: http://trac.enlightenment.org/e/changeset/64040 Modified: trunk/elementary/src/examples/web_example.c Modified: trunk/elementary/src/examples/web_example.c =================================================================== --- trunk/elementary/src/examples/web_example.c 2011-10-13 07:30:34 UTC (rev 64039) +++ trunk/elementary/src/examples/web_example.c 2011-10-13 07:38:27 UTC (rev 64040) @@ -2,7 +2,9 @@ * gcc -o web_example web_example.c `pkg-config --cflags --libs elementary ewebkit` -D_GNU_SOURCE */ #include <Elementary.h> +#ifdef HAVE_ELEMENTARY_WEB #include <EWebKit.h> +#endif #ifdef HAVE_CONFIG_H # include "elementary_config.h" #else @@ -450,10 +452,12 @@ " </body>\n" "</html>\n"; +#ifdef HAVE_ELEMENTARY_WEB view = elm_web_webkit_view_get(web); frame = ewk_view_frame_main_get(view); ewk_frame_contents_set(frame, contents, sizeof(contents) - 1, "text/html", "UTF-8", NULL); +#endif } int |