From: etrunko Date: Thu, 7 Oct 2010 19:29:32 +0000 (+0000) Subject: Eina: Don't #define _GNU_SOURCE X-Git-Tag: submit/2.0alpha-wayland/20121127.222009~955 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=232ca094abb9e7a0fc1599d77ce666241bcf203a;p=profile%2Fivi%2Feina.git Eina: Don't #define _GNU_SOURCE Instead use AC_GNU_SOURCE macro in configure.ac git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@53157 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/configure.ac b/configure.ac index ec3581b..aad4898 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,7 @@ AC_CONFIG_MACRO_DIR([m4]) AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_ISC_POSIX +AC_GNU_SOURCE AM_INIT_AUTOMAKE([1.6 dist-bzip2]) AM_CONFIG_HEADER([config.h]) diff --git a/src/lib/eina_cpu.c b/src/lib/eina_cpu.c index 1ee411f..8af550d 100644 --- a/src/lib/eina_cpu.c +++ b/src/lib/eina_cpu.c @@ -33,7 +33,6 @@ # include # include # elif defined (__linux__) || defined(__GLIBC__) -# define _GNU_SOURCE # include # endif # ifdef EFL_HAVE_POSIX_THREADS diff --git a/src/lib/eina_file.c b/src/lib/eina_file.c index a5c9572..ac3ce38 100644 --- a/src/lib/eina_file.c +++ b/src/lib/eina_file.c @@ -20,10 +20,6 @@ # include "config.h" #endif -#ifndef _WIN32 -# define _GNU_SOURCE -#endif - #ifdef HAVE_ALLOCA_H # include #elif defined __GNUC__ diff --git a/src/lib/eina_module.c b/src/lib/eina_module.c index 7ae4bdb..1c6d70f 100644 --- a/src/lib/eina_module.c +++ b/src/lib/eina_module.c @@ -20,10 +20,6 @@ # include "config.h" #endif -#ifdef HAVE_DLADDR -# define _GNU_SOURCE -#endif - #ifdef HAVE_ALLOCA_H # include #elif defined __GNUC__ diff --git a/src/lib/eina_strbuf.c b/src/lib/eina_strbuf.c index 3968af5..b9686c3 100644 --- a/src/lib/eina_strbuf.c +++ b/src/lib/eina_strbuf.c @@ -2,8 +2,6 @@ # include "config.h" #endif -#define _GNU_SOURCE - #include #include diff --git a/src/lib/eina_strbuf_common.c b/src/lib/eina_strbuf_common.c index c96e701..072388e 100644 --- a/src/lib/eina_strbuf_common.c +++ b/src/lib/eina_strbuf_common.c @@ -2,8 +2,6 @@ # include "config.h" #endif -#define _GNU_SOURCE - #include #include #include diff --git a/src/lib/eina_stringshare.c b/src/lib/eina_stringshare.c index 86b4617..83974b1 100644 --- a/src/lib/eina_stringshare.c +++ b/src/lib/eina_stringshare.c @@ -33,8 +33,6 @@ # include "config.h" #endif -#define _GNU_SOURCE - #ifdef HAVE_ALLOCA_H # include #elif defined __GNUC__