[Bf-blender-cvs] [964375e36a2] master: Cleanup: blenkernel proper header inclusion for BKE_ocean.h

Ray Molenkamp noreply at git.blender.org
Tue Mar 17 17:12:52 CET 2020


Commit: 964375e36a2b2a56d12201a3a96dd4572e0a8827
Author: Ray Molenkamp
Date:   Tue Mar 17 10:12:47 2020 -0600
Branches: master
https://developer.blender.org/rB964375e36a2b2a56d12201a3a96dd4572e0a8827

Cleanup: blenkernel proper header inclusion for BKE_ocean.h

BKE_ocean.h uses the bool type without including stdbool.h
counting on someone else including that before it.

With D6811 enabling automatic sorting of the includes
this can no longer be counted on. This changes includes
stdbool.h in BKE_ocean.h so it can build without being
depended on others including the right headers before it.

===================================================================

M	source/blender/blenkernel/BKE_ocean.h

===================================================================

diff --git a/source/blender/blenkernel/BKE_ocean.h b/source/blender/blenkernel/BKE_ocean.h
index d3ac825039d..6ce2e13cf18 100644
--- a/source/blender/blenkernel/BKE_ocean.h
+++ b/source/blender/blenkernel/BKE_ocean.h
@@ -17,6 +17,8 @@
 #ifndef __BKE_OCEAN_H__
 #define __BKE_OCEAN_H__
 
+#include <stdbool.h>
+
 /** \file
  * \ingroup bli
  */



More information about the Bf-blender-cvs mailing list