From 57faa64667411a3d8eeeeff62b1e659a94ed29cf Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Sun, 23 Dec 2012 13:03:00 -0500 Subject: Fixing headers Move GNU_SOUCE definition to configure.ac Change all headers to use config.h. Move config.h to the top. Remove errno.h if it is not needed. --- refarray/ref_array.c | 3 +-- refarray/ref_array_ut.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'refarray') diff --git a/refarray/ref_array.c b/refarray/ref_array.c index 393f236..273ac4f 100644 --- a/refarray/ref_array.c +++ b/refarray/ref_array.c @@ -17,7 +17,7 @@ along with this program. If not, see . */ -#define _GNU_SOURCE +#include "config.h" #include /* for errors */ #include #include @@ -25,7 +25,6 @@ #include #include "ref_array.h" -#include "config.h" #include "trace.h" /* The structure used in referenced array */ diff --git a/refarray/ref_array_ut.c b/refarray/ref_array_ut.c index fc9b557..343b7fa 100644 --- a/refarray/ref_array_ut.c +++ b/refarray/ref_array_ut.c @@ -17,7 +17,7 @@ along with this program. If not, see . */ -#define _GNU_SOURCE +#include "config.h" #include /* for errors */ #include #include @@ -25,7 +25,6 @@ #include #include "ref_array.h" -#include "config.h" #define TRACE_HOME #include "trace.h" -- cgit