projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
allow for APPLE MACH compilation
[fw/sdcc]
/
support
/
Util
/
NewAlloc.c
diff --git
a/support/Util/NewAlloc.c
b/support/Util/NewAlloc.c
index c603b17ce38323b3e3f9f348593d1646a8c58ddd..22aa198b5c8f3cc779f0fc1fbd9da7ab4c98a9e5 100644
(file)
--- a/
support/Util/NewAlloc.c
+++ b/
support/Util/NewAlloc.c
@@
-28,7
+28,11
@@
functions.
*/
#include <stdio.h>
+#if defined(__APPLE__) && defined(__MACH__)
+#include <sys/malloc.h>
+#else
#include <malloc.h>
+#endif
#include <stdlib.h>
#include <string.h>
#include <memory.h>