aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-03-01 08:57:50 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-03-01 08:59:50 -0500
commit426963ee52445869c13994a993de258981f2bd46 (patch)
tree59693bc041e97ca9abe7c2174a17a45ec4506b34
parentelementary: fixup warning in location example. (diff)
downloadefl-426963ee52445869c13994a993de258981f2bd46.tar.gz
elementary: fix web example warning from duplicated _GNU_SOURCE.
Summary: Depends on https://phab.enlightenment.org/D8072 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8073
-rw-r--r--src/examples/elementary/web_example_02.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/examples/elementary/web_example_02.c b/src/examples/elementary/web_example_02.c
index 9cffc3f854..3658583cab 100644
--- a/src/examples/elementary/web_example_02.c
+++ b/src/examples/elementary/web_example_02.c
@@ -1,8 +1,10 @@
/*
* gcc -o web_example_02 web_example_02.c `pkg-config --cflags --libs elementary ewebkit` -D_GNU_SOURCE
*/
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE
+#endif
-#define _GNU_SOURCE
#include <Elementary.h>
#ifdef HAVE_ELEMENTARY_WEB
#include <EWebKit.h>