From b4a3042da84420b80db0c81b90cd2df40a18f1c9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Oct 2019 15:43:18 +0200 Subject: Clean up includes --- src/zix/ring.c | 8 ++++---- src/zix/ring.h | 4 ++-- src/zix/sem.h | 4 ++-- src/zix/thread.h | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/zix') diff --git a/src/zix/ring.c b/src/zix/ring.c index a76b4ea..6af9e07 100644 --- a/src/zix/ring.c +++ b/src/zix/ring.c @@ -14,9 +14,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include -#include -#include +#include "zix/ring.h" #ifdef HAVE_MLOCK # include @@ -50,7 +48,9 @@ # define ZIX_READ_BARRIER() #endif -#include "zix/ring.h" +#include +#include +#include struct ZixRingImpl { uint32_t write_head; ///< Read index into buf diff --git a/src/zix/ring.h b/src/zix/ring.h index f7f1893..c687667 100644 --- a/src/zix/ring.h +++ b/src/zix/ring.h @@ -17,10 +17,10 @@ #ifndef ZIX_RING_H #define ZIX_RING_H -#include - #include "zix/common.h" +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/src/zix/sem.h b/src/zix/sem.h index 1fea796..e306052 100644 --- a/src/zix/sem.h +++ b/src/zix/sem.h @@ -17,6 +17,8 @@ #ifndef ZIX_SEM_H #define ZIX_SEM_H +#include "zix/common.h" + #ifdef __APPLE__ # include #elif defined(_WIN32) @@ -27,8 +29,6 @@ # include #endif -#include "zix/common.h" - #ifdef __cplusplus extern "C" { #endif diff --git a/src/zix/thread.h b/src/zix/thread.h index b007efa..5802c99 100644 --- a/src/zix/thread.h +++ b/src/zix/thread.h @@ -17,6 +17,8 @@ #ifndef ZIX_THREAD_H #define ZIX_THREAD_H +#include "zix/common.h" + #ifdef _WIN32 # include #else @@ -24,8 +26,6 @@ # include #endif -#include "zix/common.h" - #ifdef __cplusplus extern "C" { #else -- cgit v1.2.1