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 /collection | |
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 'collection')
-rw-r--r-- | collection/collection.c | 3 | ||||
-rw-r--r-- | collection/collection_cmp.c | 3 | ||||
-rw-r--r-- | collection/collection_cnv.c | 3 | ||||
-rw-r--r-- | collection/collection_iter.c | 3 | ||||
-rw-r--r-- | collection/collection_queue.c | 1 | ||||
-rw-r--r-- | collection/collection_queue_ut.c | 3 | ||||
-rw-r--r-- | collection/collection_stack.c | 1 | ||||
-rw-r--r-- | collection/collection_stack_ut.c | 3 | ||||
-rw-r--r-- | collection/collection_tools.c | 2 | ||||
-rw-r--r-- | collection/collection_ut.c | 2 |
10 files changed, 10 insertions, 14 deletions
diff --git a/collection/collection.c b/collection/collection.c index d836aa4..fa33cb8 100644 --- a/collection/collection.c +++ b/collection/collection.c @@ -19,13 +19,12 @@ along with Collection Library. If not, see <http://www.gnu.org/licenses/>. */ -#define _GNU_SOURCE +#include "config.h" #include <string.h> #include <stdlib.h> #include <errno.h> #include <ctype.h> #include <time.h> -#include "config.h" #include "trace.h" /* The collection should use the real structures */ diff --git a/collection/collection_cmp.c b/collection/collection_cmp.c index c1f9017..61d2fcc 100644 --- a/collection/collection_cmp.c +++ b/collection/collection_cmp.c @@ -19,13 +19,12 @@ along with Collection Library. If not, see <http://www.gnu.org/licenses/>. */ -#define _GNU_SOURCE +#include "config.h" #include <string.h> #include <stdlib.h> #include <errno.h> #include <ctype.h> #include <time.h> -#include "config.h" #include "trace.h" /* The collection should use the real structures */ diff --git a/collection/collection_cnv.c b/collection/collection_cnv.c index e9ca05d..c38f859 100644 --- a/collection/collection_cnv.c +++ b/collection/collection_cnv.c @@ -21,10 +21,9 @@ along with Collection Library. If not, see <http://www.gnu.org/licenses/>. */ -#define _GNU_SOURCE +#include "config.h" #include <string.h> #include <stdlib.h> -#include <errno.h> #include <ctype.h> #include <time.h> #include "trace.h" diff --git a/collection/collection_iter.c b/collection/collection_iter.c index f3735d7..9e0413c 100644 --- a/collection/collection_iter.c +++ b/collection/collection_iter.c @@ -19,13 +19,12 @@ along with Collection Library. If not, see <http://www.gnu.org/licenses/>. */ -#define _GNU_SOURCE +#include "config.h" #include <string.h> #include <stdlib.h> #include <errno.h> #include <ctype.h> #include <time.h> -#include "config.h" #include "trace.h" /* The collection should use the real structures */ diff --git a/collection/collection_queue.c b/collection/collection_queue.c index adac8ee..91b7099 100644 --- a/collection/collection_queue.c +++ b/collection/collection_queue.c @@ -19,6 +19,7 @@ along with Collection Library. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdlib.h> #include <errno.h> #include "collection_queue.h" diff --git a/collection/collection_queue_ut.c b/collection/collection_queue_ut.c index fbe6ea3..c4f7a68 100644 --- a/collection/collection_queue_ut.c +++ b/collection/collection_queue_ut.c @@ -19,10 +19,9 @@ along with Collection Library. If not, see <http://www.gnu.org/licenses/>. */ - +#include "config.h" #include <stdio.h> #include <string.h> -#include <errno.h> #define TRACE_HOME #include "trace.h" #include "collection_queue.h" diff --git a/collection/collection_stack.c b/collection/collection_stack.c index 509df51..50ac531 100644 --- a/collection/collection_stack.c +++ b/collection/collection_stack.c @@ -19,6 +19,7 @@ along with Collection Library. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" #include <stdlib.h> #include <errno.h> #include "collection_stack.h" diff --git a/collection/collection_stack_ut.c b/collection/collection_stack_ut.c index e0633b7..9c25308 100644 --- a/collection/collection_stack_ut.c +++ b/collection/collection_stack_ut.c @@ -19,10 +19,9 @@ along with Collection Library. If not, see <http://www.gnu.org/licenses/>. */ - +#include "config.h" #include <stdio.h> #include <string.h> -#include <errno.h> #define TRACE_HOME #include "trace.h" #include "collection_stack.h" diff --git a/collection/collection_tools.c b/collection/collection_tools.c index b7f30d2..54d96c3 100644 --- a/collection/collection_tools.c +++ b/collection/collection_tools.c @@ -19,7 +19,7 @@ along with Collection Library. If not, see <http://www.gnu.org/licenses/>. */ - +#include "config.h" #include <stdio.h> #include <malloc.h> #include <errno.h> diff --git a/collection/collection_ut.c b/collection/collection_ut.c index c34cd36..2692879 100644 --- a/collection/collection_ut.c +++ b/collection/collection_ut.c @@ -19,7 +19,7 @@ along with Collection Library. If not, see <http://www.gnu.org/licenses/>. */ - +#include "config.h" #include <stdio.h> #include <string.h> #include <errno.h> |