Eina: Don't #define _GNU_SOURCE
authoretrunko <etrunko@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Oct 2010 19:29:32 +0000 (19:29 +0000)
committeretrunko <etrunko@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 Oct 2010 19:29:32 +0000 (19:29 +0000)
Instead use AC_GNU_SOURCE macro in configure.ac

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@53157 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/lib/eina_cpu.c
src/lib/eina_file.c
src/lib/eina_module.c
src/lib/eina_strbuf.c
src/lib/eina_strbuf_common.c
src/lib/eina_stringshare.c

index ec3581b..aad4898 100644 (file)
@@ -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])
index 1ee411f..8af550d 100644 (file)
@@ -33,7 +33,6 @@
 #  include <sys/param.h>
 #  include <sys/sysctl.h>
 # elif defined (__linux__) || defined(__GLIBC__)
-#  define _GNU_SOURCE
 #  include <sched.h>
 # endif
 # ifdef EFL_HAVE_POSIX_THREADS
index a5c9572..ac3ce38 100644 (file)
 # include "config.h"
 #endif
 
-#ifndef _WIN32
-# define _GNU_SOURCE
-#endif
-
 #ifdef HAVE_ALLOCA_H
 # include <alloca.h>
 #elif defined __GNUC__
index 7ae4bdb..1c6d70f 100644 (file)
 # include "config.h"
 #endif
 
-#ifdef HAVE_DLADDR
-# define _GNU_SOURCE
-#endif
-
 #ifdef HAVE_ALLOCA_H
 # include <alloca.h>
 #elif defined __GNUC__
index 3968af5..b9686c3 100644 (file)
@@ -2,8 +2,6 @@
 # include "config.h"
 #endif
 
-#define _GNU_SOURCE
-
 #include <stdio.h>
 #include <string.h>
 
index c96e701..072388e 100644 (file)
@@ -2,8 +2,6 @@
 # include "config.h"
 #endif
 
-#define _GNU_SOURCE
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 86b4617..83974b1 100644 (file)
@@ -33,8 +33,6 @@
 # include "config.h"
 #endif
 
-#define _GNU_SOURCE
-
 #ifdef HAVE_ALLOCA_H
 # include <alloca.h>
 #elif defined __GNUC__