From cff49e625f0379d8449d20147a645f90ef2d321a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 3 Apr 2020 13:28:51 +0200 Subject: [PATCH] Cleanup: add missing #includes to some headers It should be possible to `#include` any header without having to worry about its dependencies. I didn't go and check all include files for this, just the ones that caused me errors while I was refactoring the `anim_sys.c` file. No functional changes. --- source/blender/blenkernel/BKE_animsys.h | 2 ++ source/blender/blenlib/BLI_compiler_typecheck.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source/blender/blenkernel/BKE_animsys.h b/source/blender/blenkernel/BKE_animsys.h index 9da17d777cd..3debe94c264 100644 --- a/source/blender/blenkernel/BKE_animsys.h +++ b/source/blender/blenkernel/BKE_animsys.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include "BLI_sys_types.h" /* for bool */ + struct AnimData; struct Depsgraph; struct FCurve; diff --git a/source/blender/blenlib/BLI_compiler_typecheck.h b/source/blender/blenlib/BLI_compiler_typecheck.h index 958ffeb0748..0a2eddc4ecc 100644 --- a/source/blender/blenlib/BLI_compiler_typecheck.h +++ b/source/blender/blenlib/BLI_compiler_typecheck.h @@ -24,6 +24,8 @@ * These depend on compiler extensions and c11 in some cases. */ +#include "BLI_utildefines_variadic.h" + /* Causes warning: * incompatible types when assigning to type 'Foo' from type 'Bar' * ... the compiler optimizes away the temp var */