elementary: fix combobox example to not duplicate the definition of _GNU_SOURCE.
authorCedric BAIL <cedric.bail@free.fr>
Fri, 1 Mar 2019 13:58:59 +0000 (08:58 -0500)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 8 Mar 2019 11:49:37 +0000 (20:49 +0900)
Summary: Depends on D8075

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: #reviewers, #committers

Tags: #efl

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

src/examples/elementary/combobox_example_01.c

index 186e17e..ca450b2 100644 (file)
@@ -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>