[Bf-blender-cvs] [f23a595228b] blender2.8: Add stdlib include for utildefines

Campbell Barton noreply at git.blender.org
Tue Nov 14 13:30:41 CET 2017


Commit: f23a595228bd56da87385e80922aefb5c72e9877
Author: Campbell Barton
Date:   Tue Nov 14 23:38:53 2017 +1100
Branches: blender2.8
https://developer.blender.org/rBf23a595228bd56da87385e80922aefb5c72e9877

Add stdlib include for utildefines

Ideally we could just declare abort, but this has attributes
based on the platform, so include stdlib instead.

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

M	source/blender/blenlib/BLI_utildefines.h

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

diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h
index 1186e4a0713..b13d5e368ec 100644
--- a/source/blender/blenlib/BLI_utildefines.h
+++ b/source/blender/blenlib/BLI_utildefines.h
@@ -609,6 +609,9 @@ extern bool BLI_memory_is_zero(const void *arr, const size_t arr_size);
 /* BLI_assert(), default only to print
  * for aborting need to define WITH_ASSERT_ABORT
  */
+/* For 'abort' only. */
+#include <stdlib.h>
+
 #ifndef NDEBUG
 #  include "BLI_system.h"
 #  ifdef WITH_ASSERT_ABORT



More information about the Bf-blender-cvs mailing list