From f5f2a8f0cbdffae56a0ea2d2c5e83be50953fc64 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 12 Jul 2016 13:29:37 -0500 Subject: [PATCH] Add lib_common.h --- lib/adler32.h | 2 +- lib/aligned_malloc.h | 2 +- lib/crc32.h | 2 +- lib/lib_common.h | 10 ++++++++++ lib/matchfinder_common.h | 2 +- lib/unaligned.h | 2 +- lib/x86_cpu_features.h | 2 +- 7 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 lib/lib_common.h diff --git a/lib/adler32.h b/lib/adler32.h index a8831a2..11d78bd 100644 --- a/lib/adler32.h +++ b/lib/adler32.h @@ -5,7 +5,7 @@ #ifndef _LIB_ADLER32_H #define _LIB_ADLER32_H -#include "common_defs.h" +#include "lib_common.h" extern u32 adler32(const void *buffer, size_t size); diff --git a/lib/aligned_malloc.h b/lib/aligned_malloc.h index 6051ba5..2b3f0f9 100644 --- a/lib/aligned_malloc.h +++ b/lib/aligned_malloc.h @@ -5,7 +5,7 @@ #ifndef _LIB_ALIGNED_MALLOC_H #define _LIB_ALIGNED_MALLOC_H -#include "common_defs.h" +#include "lib_common.h" extern void *aligned_malloc(size_t alignment, size_t size); extern void aligned_free(void *ptr); diff --git a/lib/crc32.h b/lib/crc32.h index 81e70f6..c859e34 100644 --- a/lib/crc32.h +++ b/lib/crc32.h @@ -5,7 +5,7 @@ #ifndef _LIB_CRC32_H #define _LIB_CRC32_H -#include "common_defs.h" +#include "lib_common.h" extern u32 crc32_gzip(const void *buffer, size_t size); diff --git a/lib/lib_common.h b/lib/lib_common.h new file mode 100644 index 0000000..3e90786 --- /dev/null +++ b/lib/lib_common.h @@ -0,0 +1,10 @@ +/* + * lib_common.h - internal header included by all library code + */ + +#ifndef _LIB_LIB_COMMON_H +#define _LIB_LIB_COMMON_H + +#include "common_defs.h" + +#endif /* _LIB_LIB_COMMON_H */ diff --git a/lib/matchfinder_common.h b/lib/matchfinder_common.h index 0291f14..8ef4d98 100644 --- a/lib/matchfinder_common.h +++ b/lib/matchfinder_common.h @@ -5,7 +5,7 @@ #ifndef _LIB_MATCHFINDER_COMMON_H #define _LIB_MATCHFINDER_COMMON_H -#include "common_defs.h" +#include "lib_common.h" #include "unaligned.h" #ifndef MATCHFINDER_WINDOW_ORDER diff --git a/lib/unaligned.h b/lib/unaligned.h index 279b187..7aeaf0c 100644 --- a/lib/unaligned.h +++ b/lib/unaligned.h @@ -5,7 +5,7 @@ #ifndef LIB_UNALIGNED_H #define LIB_UNALIGNED_H -#include "common_defs.h" +#include "lib_common.h" /* * Naming note: diff --git a/lib/x86_cpu_features.h b/lib/x86_cpu_features.h index 8d58db7..5b89dc9 100644 --- a/lib/x86_cpu_features.h +++ b/lib/x86_cpu_features.h @@ -5,7 +5,7 @@ #ifndef _LIB_X86_CPU_FEATURES_H #define _LIB_X86_CPU_FEATURES_H -#include "common_defs.h" +#include "lib_common.h" #if defined(__x86_64__) && COMPILER_SUPPORTS_TARGET_FUNCTION_ATTRIBUTE # define X86_CPU_FEATURES_ENABLED 1