[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53599] trunk/blender/source/blender/ blenlib/BLI_utildefines.h: BLI_assert uses printf so stdio. h should be included instead of relying on it to be included by other headers accidentally

Jason Wilkins Jason.A.Wilkins at gmail.com
Sun Jan 6 10:24:48 CET 2013


Revision: 53599
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53599
Author:   jwilkins
Date:     2013-01-06 09:24:45 +0000 (Sun, 06 Jan 2013)
Log Message:
-----------
BLI_assert uses printf so stdio.h should be included instead of relying on it to be included by other headers accidentally

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/BLI_utildefines.h

Modified: trunk/blender/source/blender/blenlib/BLI_utildefines.h
===================================================================
--- trunk/blender/source/blender/blenlib/BLI_utildefines.h	2013-01-06 08:28:45 UTC (rev 53598)
+++ trunk/blender/source/blender/blenlib/BLI_utildefines.h	2013-01-06 09:24:45 UTC (rev 53599)
@@ -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




More information about the Bf-blender-cvs mailing list