From 96e2bd84932a826d09b7ed2201ba67a0a74f0b29 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 6 Mar 2020 16:45:06 +0100 Subject: Cleanup: Fix forward declaration of headers --- source/blender/blenlib/BLI_array_utils.h | 1 + source/blender/blenlib/BLI_bitmap.h | 2 ++ source/blender/blenlib/BLI_edgehash.h | 1 + source/blender/blenlib/BLI_endian_switch.h | 1 + source/blender/blenlib/BLI_fileops.h | 3 ++- source/blender/blenlib/BLI_ghash.h | 3 ++- source/blender/blenlib/BLI_hash.h | 2 ++ source/blender/blenlib/BLI_heap.h | 2 ++ source/blender/blenlib/BLI_kdtree_impl.h | 1 + source/blender/blenlib/BLI_math_matrix.h | 1 + source/blender/blenlib/BLI_math_rotation.h | 1 + source/blender/blenlib/BLI_math_vector.h | 1 + source/blender/blenlib/BLI_memory_utils_cxx.h | 2 ++ source/blender/blenlib/BLI_mempool.h | 1 + source/blender/blenlib/BLI_path_util.h | 1 + source/blender/blenlib/BLI_string.h | 2 +- source/blender/blenlib/BLI_string_utils.h | 2 +- source/blender/blenlib/BLI_threads.h | 2 ++ source/blender/blenlib/intern/math_geom_inline.c | 1 + 19 files changed, 26 insertions(+), 4 deletions(-) (limited to 'source/blender/blenlib') diff --git a/source/blender/blenlib/BLI_array_utils.h b/source/blender/blenlib/BLI_array_utils.h index f70aa3b54fa..afa9a3d2241 100644 --- a/source/blender/blenlib/BLI_array_utils.h +++ b/source/blender/blenlib/BLI_array_utils.h @@ -23,6 +23,7 @@ */ #include "BLI_compiler_typecheck.h" +#include "BLI_sys_types.h" #ifdef __cplusplus extern "C" { diff --git a/source/blender/blenlib/BLI_bitmap.h b/source/blender/blenlib/BLI_bitmap.h index 3772a063515..d67fbabd11c 100644 --- a/source/blender/blenlib/BLI_bitmap.h +++ b/source/blender/blenlib/BLI_bitmap.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include "BLI_utildefines.h" + typedef unsigned int BLI_bitmap; /* warning: the bitmap does not keep track of its own size or check diff --git a/source/blender/blenlib/BLI_edgehash.h b/source/blender/blenlib/BLI_edgehash.h index bd149e2eaa0..0e2d0b538c7 100644 --- a/source/blender/blenlib/BLI_edgehash.h +++ b/source/blender/blenlib/BLI_edgehash.h @@ -22,6 +22,7 @@ */ #include "BLI_compiler_attrs.h" +#include "BLI_utildefines.h" #ifdef __cplusplus extern "C" { diff --git a/source/blender/blenlib/BLI_endian_switch.h b/source/blender/blenlib/BLI_endian_switch.h index a07508e31a0..c67c098053d 100644 --- a/source/blender/blenlib/BLI_endian_switch.h +++ b/source/blender/blenlib/BLI_endian_switch.h @@ -22,6 +22,7 @@ */ #include "BLI_compiler_attrs.h" +#include "BLI_utildefines.h" #ifdef __cplusplus extern "C" { diff --git a/source/blender/blenlib/BLI_fileops.h b/source/blender/blenlib/BLI_fileops.h index 74e6c32b288..d908c47b400 100644 --- a/source/blender/blenlib/BLI_fileops.h +++ b/source/blender/blenlib/BLI_fileops.h @@ -25,9 +25,9 @@ #ifndef __BLI_FILEOPS_H__ #define __BLI_FILEOPS_H__ +#include #include #include -#include #ifdef __cplusplus extern "C" { @@ -39,6 +39,7 @@ extern "C" { #include /* for PATH_MAX */ #include "BLI_compiler_attrs.h" +#include "BLI_utildefines.h" #ifndef PATH_MAX # define PATH_MAX 4096 diff --git a/source/blender/blenlib/BLI_ghash.h b/source/blender/blenlib/BLI_ghash.h index f59d9ea99d0..141c631381b 100644 --- a/source/blender/blenlib/BLI_ghash.h +++ b/source/blender/blenlib/BLI_ghash.h @@ -28,8 +28,9 @@ * This is also used to implement a 'set' (see #GSet below). */ -#include "BLI_sys_types.h" /* for bool */ #include "BLI_compiler_attrs.h" +#include "BLI_compiler_compat.h" +#include "BLI_sys_types.h" /* for bool */ #ifdef __cplusplus extern "C" { diff --git a/source/blender/blenlib/BLI_hash.h b/source/blender/blenlib/BLI_hash.h index 59ed2b273b5..d09291b64be 100644 --- a/source/blender/blenlib/BLI_hash.h +++ b/source/blender/blenlib/BLI_hash.h @@ -25,6 +25,8 @@ extern "C" { #endif +#include "BLI_utildefines.h" + BLI_INLINE unsigned int BLI_hash_int_2d(unsigned int kx, unsigned int ky) { #define rot(x, k) (((x) << (k)) | ((x) >> (32 - (k)))) diff --git a/source/blender/blenlib/BLI_heap.h b/source/blender/blenlib/BLI_heap.h index 3ce8da7e03c..fa8e49ef376 100644 --- a/source/blender/blenlib/BLI_heap.h +++ b/source/blender/blenlib/BLI_heap.h @@ -26,6 +26,8 @@ extern "C" { #endif +#include "BLI_math.h" + struct Heap; struct HeapNode; typedef struct Heap Heap; diff --git a/source/blender/blenlib/BLI_kdtree_impl.h b/source/blender/blenlib/BLI_kdtree_impl.h index c028266ef64..4b2a37830ae 100644 --- a/source/blender/blenlib/BLI_kdtree_impl.h +++ b/source/blender/blenlib/BLI_kdtree_impl.h @@ -20,6 +20,7 @@ */ #include "BLI_compiler_attrs.h" +#include "BLI_sys_types.h" #define _BLI_CONCAT_AUX(MACRO_ARG1, MACRO_ARG2) MACRO_ARG1##MACRO_ARG2 #define _BLI_CONCAT(MACRO_ARG1, MACRO_ARG2) _BLI_CONCAT_AUX(MACRO_ARG1, MACRO_ARG2) diff --git a/source/blender/blenlib/BLI_math_matrix.h b/source/blender/blenlib/BLI_math_matrix.h index 7845e0998e0..1221ecfb7b1 100644 --- a/source/blender/blenlib/BLI_math_matrix.h +++ b/source/blender/blenlib/BLI_math_matrix.h @@ -31,6 +31,7 @@ extern "C" { #endif #include "BLI_compiler_attrs.h" +#include "BLI_sys_types.h" /********************************* Init **************************************/ diff --git a/source/blender/blenlib/BLI_math_rotation.h b/source/blender/blenlib/BLI_math_rotation.h index 1e56b80bcf2..b7ae35b2e23 100644 --- a/source/blender/blenlib/BLI_math_rotation.h +++ b/source/blender/blenlib/BLI_math_rotation.h @@ -27,6 +27,7 @@ * \ingroup bli */ +#include "BLI_utildefines.h" #include "DNA_vec_types.h" #ifdef __cplusplus diff --git a/source/blender/blenlib/BLI_math_vector.h b/source/blender/blenlib/BLI_math_vector.h index b9d2a89784b..6cfa2d2ced6 100644 --- a/source/blender/blenlib/BLI_math_vector.h +++ b/source/blender/blenlib/BLI_math_vector.h @@ -33,6 +33,7 @@ extern "C" { #include "BLI_compiler_attrs.h" #include "BLI_math_inline.h" +#include "BLI_utildefines.h" /************************************* Init ***********************************/ diff --git a/source/blender/blenlib/BLI_memory_utils_cxx.h b/source/blender/blenlib/BLI_memory_utils_cxx.h index f15621b4e41..35b08f804cb 100644 --- a/source/blender/blenlib/BLI_memory_utils_cxx.h +++ b/source/blender/blenlib/BLI_memory_utils_cxx.h @@ -24,6 +24,8 @@ #include #include +#include "BLI_utildefines.h" + namespace BLI { using std::copy; diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h index 67851a63f8f..6491180c2fd 100644 --- a/source/blender/blenlib/BLI_mempool.h +++ b/source/blender/blenlib/BLI_mempool.h @@ -29,6 +29,7 @@ extern "C" { #endif #include "BLI_compiler_attrs.h" +#include "BLI_utildefines.h" struct BLI_mempool; struct BLI_mempool_chunk; diff --git a/source/blender/blenlib/BLI_path_util.h b/source/blender/blenlib/BLI_path_util.h index d4e3ebdb2e1..4376aefdc25 100644 --- a/source/blender/blenlib/BLI_path_util.h +++ b/source/blender/blenlib/BLI_path_util.h @@ -28,6 +28,7 @@ extern "C" { #endif #include "BLI_compiler_attrs.h" +#include "BLI_utildefines.h" void BLI_setenv(const char *env, const char *val) ATTR_NONNULL(1); void BLI_setenv_if_new(const char *env, const char *val) ATTR_NONNULL(1); diff --git a/source/blender/blenlib/BLI_string.h b/source/blender/blenlib/BLI_string.h index cc91c26a2ab..7c8290439c6 100644 --- a/source/blender/blenlib/BLI_string.h +++ b/source/blender/blenlib/BLI_string.h @@ -32,7 +32,7 @@ extern "C" { #endif #include "BLI_compiler_attrs.h" -#include "BLI_utildefines_variadic.h" +#include "BLI_utildefines.h" char *BLI_strdupn(const char *str, const size_t len) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); diff --git a/source/blender/blenlib/BLI_string_utils.h b/source/blender/blenlib/BLI_string_utils.h index 273f20315bd..7b0dd13e0c7 100644 --- a/source/blender/blenlib/BLI_string_utils.h +++ b/source/blender/blenlib/BLI_string_utils.h @@ -31,7 +31,7 @@ extern "C" { #endif #include "BLI_compiler_attrs.h" -#include "BLI_utildefines_variadic.h" +#include "BLI_utildefines.h" struct ListBase; diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h index 32b7f219605..c2127c1ec3a 100644 --- a/source/blender/blenlib/BLI_threads.h +++ b/source/blender/blenlib/BLI_threads.h @@ -29,6 +29,8 @@ extern "C" { #include +#include "BLI_sys_types.h" + #ifdef __APPLE__ # include #endif diff --git a/source/blender/blenlib/intern/math_geom_inline.c b/source/blender/blenlib/intern/math_geom_inline.c index d275ea0862e..893c978d084 100644 --- a/source/blender/blenlib/intern/math_geom_inline.c +++ b/source/blender/blenlib/intern/math_geom_inline.c @@ -28,6 +28,7 @@ #define __MATH_GEOM_INLINE_C__ #include "BLI_math.h" +#include "BLI_math_vector.h" #include -- cgit v1.2.3