aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-03-01 08:59:19 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-03-01 08:59:50 -0500
commitc8a7a5a77f7e44a7f0ed9d556409f8c233a29f65 (patch)
tree3d78cce1003c966b8a4e9abae4b4e9da3cd373f7
parentelementary: fix combobox example to not duplicate the definition of _GNU_SOURCE. (diff)
downloadefl-c8a7a5a77f7e44a7f0ed9d556409f8c233a29f65.tar.gz
elementary: fix web example to define _GNU_SOURCE only if needed.
Summary: Depends on https://phab.enlightenment.org/D8076 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8077
-rw-r--r--src/examples/elementary/web_example_01.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/examples/elementary/web_example_01.c b/src/examples/elementary/web_example_01.c
index 82b53053dd..7e38bbfba1 100644
--- a/src/examples/elementary/web_example_01.c
+++ b/src/examples/elementary/web_example_01.c
@@ -1,8 +1,10 @@
/*
* gcc -o web_example_01 web_example_01.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>