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:
Diffstat (limited to 'intern/mikktspace/mikktspace.c')
-rw-r--r--intern/mikktspace/mikktspace.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/intern/mikktspace/mikktspace.c b/intern/mikktspace/mikktspace.c
index 125725a44ff..797064a21f6 100644
--- a/intern/mikktspace/mikktspace.c
+++ b/intern/mikktspace/mikktspace.c
@@ -23,7 +23,13 @@
#include <math.h>
#include <string.h>
#include <float.h>
-#include <malloc.h>
+
+#ifdef __APPLE__
+#include <stdlib.h> /* OSX gets its malloc stuff through here */
+#else
+#include <malloc.h>
+#endif
+
#include "mikktspace.h"
#define TFALSE 0