Skip to content

Commit 3b38321

Browse files
committed
Added include fix for malloc
1 parent 9621b7f commit 3b38321

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

defold-spine/src/res_spine_json.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
#include "res_spine_json.h"
22
#include <memory.h>
3-
#include <malloc.h>
43
#include <string.h>
54
#include <stdio.h>
65

6+
#ifdef __MACH__
7+
#include <malloc/malloc.h>
8+
#else
9+
#include <malloc.h>
10+
#endif
11+
712
#include <dmsdk/dlib/log.h>
813
#include <dmsdk/resource/resource.h>
914

0 commit comments

Comments
 (0)