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. --- basicobjects/simplebuffer.c | 4 +--- basicobjects/simplebuffer_ut.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'basicobjects') diff --git a/basicobjects/simplebuffer.c b/basicobjects/simplebuffer.c index b47d6b6..1e7b3fb 100644 --- a/basicobjects/simplebuffer.c +++ b/basicobjects/simplebuffer.c @@ -17,8 +17,7 @@ along with this program. If not, see . */ - -#define _GNU_SOURCE +#include "config.h" #include /* for errors */ #include /* for free() */ #include /* for write() */ @@ -26,7 +25,6 @@ #include "simplebuffer.h" #include "trace.h" -#include "config.h" /* End line string */ #define ENDLNSTR "\n" diff --git a/basicobjects/simplebuffer_ut.c b/basicobjects/simplebuffer_ut.c index 61272da..ba9d172 100644 --- a/basicobjects/simplebuffer_ut.c +++ b/basicobjects/simplebuffer_ut.c @@ -17,10 +17,10 @@ along with this program. If not, see . */ +#include "config.h" #include #include #include -#include #include #include #include -- cgit