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
This commit is contained in:
Cedric BAIL 2019-03-01 08:59:19 -05:00 committed by Christopher Michael
parent 5f48e25b50
commit c8a7a5a77f
1 changed files with 3 additions and 1 deletions

View 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>