[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34942] trunk/blender/intern/mikktspace/ mikktspace.c: malloc() comes from stdlib.h per K&R ANSI C, C89 & C99.
gsr b3d
gsr.b3d at infernal-iceberg.com
Thu Feb 17 22:14:54 CET 2011
Revision: 34942
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34942
Author: gsrb3d
Date: 2011-02-17 21:14:54 +0000 (Thu, 17 Feb 2011)
Log Message:
-----------
malloc() comes from stdlib.h per K&R ANSI C, C89 & C99.
If some plataform really needs malloc.h, that is the exception to get #ifdef.
Modified Paths:
--------------
trunk/blender/intern/mikktspace/mikktspace.c
Modified: trunk/blender/intern/mikktspace/mikktspace.c
===================================================================
--- trunk/blender/intern/mikktspace/mikktspace.c 2011-02-17 20:48:12 UTC (rev 34941)
+++ trunk/blender/intern/mikktspace/mikktspace.c 2011-02-17 21:14:54 UTC (rev 34942)
@@ -23,13 +23,8 @@
#include <math.h>
#include <string.h>
#include <float.h>
+#include <stdlib.h>
-#if defined (__APPLE__) || defined (__FreeBSD__) || defined (__NetBSD__)
-#include <stdlib.h> /* OSX & BSD's get its malloc stuff through here */
-#else
-#include <malloc.h>
-#endif
-
#include "mikktspace.h"
#define TFALSE 0
More information about the Bf-blender-cvs
mailing list