summaryrefslogtreecommitdiff
path: root/src/embtk/include/malloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/embtk/include/malloc.h')
-rw-r--r--src/embtk/include/malloc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/embtk/include/malloc.h b/src/embtk/include/malloc.h
new file mode 100644
index 0000000..81d3bef
--- /dev/null
+++ b/src/embtk/include/malloc.h
@@ -0,0 +1,10 @@
+#ifndef __malloc_compat_h
+#define __malloc_compat_h
+
+#if defined(__APPLE__)
+#include <stdlib.h>
+#else
+#include_next <malloc.h>
+#endif
+
+#endif \ No newline at end of file