aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/pkg/wuffs/include/stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/libghostty-vt/pkg/wuffs/include/stdlib.h')
-rw-r--r--vendor/libghostty-vt/pkg/wuffs/include/stdlib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/pkg/wuffs/include/stdlib.h b/vendor/libghostty-vt/pkg/wuffs/include/stdlib.h
new file mode 100644
index 00000000..5c050743
--- /dev/null
+++ b/vendor/libghostty-vt/pkg/wuffs/include/stdlib.h
@@ -0,0 +1,13 @@
+// Minimal stdlib.h so that wuffs can be translated and compiled without
+// requiring libc headers. See string.h in this directory for details.
+#ifndef GHOSTTY_WUFFS_STDLIB_H
+#define GHOSTTY_WUFFS_STDLIB_H
+
+#include <stddef.h>
+
+void *malloc(size_t size);
+void *calloc(size_t count, size_t size);
+void *realloc(void *ptr, size_t size);
+void free(void *ptr);
+
+#endif