diff options
author | Dmitri Pal <dpal@redhat.com> | 2012-12-23 13:03:00 -0500 |
---|---|---|
committer | Ondrej Kos <okos@redhat.com> | 2013-01-24 08:34:37 +0100 |
commit | 57faa64667411a3d8eeeeff62b1e659a94ed29cf (patch) | |
tree | 229c850672e485e62fce866cf1b14fb65a5a4c06 /refarray | |
parent | 360710d1a6c0c24d00a915a630884281b0b9e665 (diff) | |
download | ding-libs2-57faa64667411a3d8eeeeff62b1e659a94ed29cf.tar.gz ding-libs2-57faa64667411a3d8eeeeff62b1e659a94ed29cf.tar.xz ding-libs2-57faa64667411a3d8eeeeff62b1e659a94ed29cf.zip |
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.
Diffstat (limited to 'refarray')
-rw-r--r-- | refarray/ref_array.c | 3 | ||||
-rw-r--r-- | refarray/ref_array_ut.c | 3 |
2 files changed, 2 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>. */ -#define _GNU_SOURCE +#include "config.h" #include <errno.h> /* for errors */ #include <stdint.h> #include <malloc.h> @@ -25,7 +25,6 @@ #include <stdio.h> #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 <http://www.gnu.org/licenses/>. */ -#define _GNU_SOURCE +#include "config.h" #include <errno.h> /* for errors */ #include <stdint.h> #include <stdio.h> @@ -25,7 +25,6 @@ #include <stdlib.h> #include "ref_array.h" -#include "config.h" #define TRACE_HOME #include "trace.h" |