aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_x_heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gos/gos_x_heap.c')
-rw-r--r--src/gos/gos_x_heap.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gos/gos_x_heap.c b/src/gos/gos_x_heap.c
index cd78f403..7e79d1c6 100644
--- a/src/gos/gos_x_heap.c
+++ b/src/gos/gos_x_heap.c
@@ -194,3 +194,14 @@
#endif
#endif /* GOS_NEED_X_HEAP */
+
+#if GFX_EMULATE_MALLOC
+ #include <stdlib.h>
+
+ void* malloc(size_t size) {
+ return gfxAlloc(size);
+ }
+ void free(void *ptr) {
+ gfxFree(ptr);
+ }
+#endif