Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wilkins <Jason.A.Wilkins@gmail.com>2013-01-06 13:24:45 +0400
committerJason Wilkins <Jason.A.Wilkins@gmail.com>2013-01-06 13:24:45 +0400
commit92481161d6d04374107cbc0fde4819a1bf086b6d (patch)
tree35228ff1e47cda34ed0577288d7ddfde45377520
parent252d0c6c5bbb8de66e10249892abb16f891b9ac7 (diff)
BLI_assert uses printf so stdio.h should be included instead of relying on it to be included by other headers accidentally
-rw-r--r--source/blender/blenlib/BLI_utildefines.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h
index cb30138c4f9..43b1e7871cd 100644
--- a/source/blender/blenlib/BLI_utildefines.h
+++ b/source/blender/blenlib/BLI_utildefines.h
@@ -32,6 +32,10 @@
* \ingroup bli
*/
+#ifndef NDEBUG /* for BLI_assert */
+#include <stdio.h>
+#endif
+
/* note: use of (int, TRUE / FALSE) is deprecated,
* use (bool, true / false) instead */
#ifdef HAVE_STDBOOL_H