elementary: fix web example warning from duplicated _GNU_SOURCE.
authorCedric BAIL <cedric.bail@free.fr>
Fri, 1 Mar 2019 13:57:50 +0000 (08:57 -0500)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 8 Mar 2019 11:49:37 +0000 (20:49 +0900)
Summary: Depends on D8072

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8073

src/examples/elementary/web_example_02.c

index 9cffc3f..3658583 100644 (file)
@@ -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>