[Bf-blender-cvs] [cff49e625f0] master: Cleanup: add missing #includes to some headers
Sybren A. Stüvel
noreply at git.blender.org
Fri Apr 3 14:28:45 CEST 2020
Commit: cff49e625f0379d8449d20147a645f90ef2d321a
Author: Sybren A. Stüvel
Date: Fri Apr 3 13:28:51 2020 +0200
Branches: master
https://developer.blender.org/rBcff49e625f0379d8449d20147a645f90ef2d321a
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.
===================================================================
M source/blender/blenkernel/BKE_animsys.h
M source/blender/blenlib/BLI_compiler_typecheck.h
===================================================================
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 */
More information about the Bf-blender-cvs
mailing list