diff options
author | David Robillard <d@drobilla.net> | 2019-10-17 15:43:18 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-17 15:43:18 +0200 |
commit | b4a3042da84420b80db0c81b90cd2df40a18f1c9 (patch) | |
tree | 13ab68db50c61f332b948f248fe1c6b206f88712 /src/zix | |
parent | ba6f8e44590e19ff65274cf919e63f4035130ccb (diff) | |
download | jalv-b4a3042da84420b80db0c81b90cd2df40a18f1c9.tar.gz jalv-b4a3042da84420b80db0c81b90cd2df40a18f1c9.tar.bz2 jalv-b4a3042da84420b80db0c81b90cd2df40a18f1c9.zip |
Clean up includes
Diffstat (limited to 'src/zix')
-rw-r--r-- | src/zix/ring.c | 8 | ||||
-rw-r--r-- | src/zix/ring.h | 4 | ||||
-rw-r--r-- | src/zix/sem.h | 4 | ||||
-rw-r--r-- | src/zix/thread.h | 4 |
4 files changed, 10 insertions, 10 deletions
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 <stdint.h> -#include <stdlib.h> -#include <string.h> +#include "zix/ring.h" #ifdef HAVE_MLOCK # include <sys/mman.h> @@ -50,7 +48,9 @@ # define ZIX_READ_BARRIER() #endif -#include "zix/ring.h" +#include <stdint.h> +#include <stdlib.h> +#include <string.h> 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 <stdint.h> - #include "zix/common.h" +#include <stdint.h> + #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 <mach/mach.h> #elif defined(_WIN32) @@ -27,8 +29,6 @@ # include <errno.h> #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 <windows.h> #else @@ -24,8 +26,6 @@ # include <pthread.h> #endif -#include "zix/common.h" - #ifdef __cplusplus extern "C" { #else |