aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-03-01 08:58:59 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-03-01 08:59:50 -0500
commit5f48e25b506c0e3a71dccedbd613a164cd373288 (patch)
treed580c39758caf1cfe9b00b0001fc8cef24f64d80 /src/examples
parentelementary: remove badly named and unused array. (diff)
downloadefl-5f48e25b506c0e3a71dccedbd613a164cd373288.tar.gz
elementary: fix combobox example to not duplicate the definition of _GNU_SOURCE.
Summary: Depends on https://phab.enlightenment.org/D8075 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8076
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/elementary/combobox_example_01.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/examples/elementary/combobox_example_01.c b/src/examples/elementary/combobox_example_01.c
index 186e17e68c..ca450b26a4 100644
--- a/src/examples/elementary/combobox_example_01.c
+++ b/src/examples/elementary/combobox_example_01.c
@@ -1,7 +1,8 @@
//Compile with:
//gcc -o combobox_example_01 combobox_example_01.c -g `pkg-config --cflags --libs elementary`
-
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE
+#endif
#include <string.h>
#include <Elementary.h>