From: Cedric BAIL Date: Fri, 1 Mar 2019 13:59:19 +0000 (-0500) Subject: elementary: fix web example to define _GNU_SOURCE only if needed. X-Git-Tag: submit/tizen/20190308.115227~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e1ea93994868a77b19832c61755afc1961b5f82;p=platform%2Fupstream%2Fefl.git elementary: fix web example to define _GNU_SOURCE only if needed. Summary: Depends on D8076 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8077 --- diff --git a/src/examples/elementary/web_example_01.c b/src/examples/elementary/web_example_01.c index 82b5305..7e38bbf 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 #ifdef HAVE_ELEMENTARY_WEB #include