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:
authorGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2011-02-18 00:14:54 +0300
committerGuillermo S. Romero <gsr.b3d@infernal-iceberg.com>2011-02-18 00:14:54 +0300
commit456ca98564555bb072e0e72b64f790e4b8c6ceec (patch)
tree262921dee27d17190f836644abdfce15827e8d11 /intern/mikktspace
parent22dbae84e5ed0fa836f5f84faaeb51a7ec585c64 (diff)
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.
Diffstat (limited to 'intern/mikktspace')
-rw-r--r--intern/mikktspace/mikktspace.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/intern/mikktspace/mikktspace.c b/intern/mikktspace/mikktspace.c
index 71eae902667..744f9000f10 100644
--- a/intern/mikktspace/mikktspace.c
+++ b/intern/mikktspace/mikktspace.c
@@ -23,12 +23,7 @@
#include <math.h>
#include <string.h>
#include <float.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 <stdlib.h>
#include "mikktspace.h"