elementary: fix web example to define _GNU_SOURCE only if needed.
authorCedric BAIL <cedric.bail@free.fr>
Fri, 1 Mar 2019 13:59:19 +0000 (08:59 -0500)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 8 Mar 2019 11:49:37 +0000 (20:49 +0900)
Summary: Depends on D8076

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: #reviewers, #committers

Tags: #efl

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

src/examples/elementary/web_example_01.c

index 82b5305..7e38bbf 100644 (file)
@@ -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>