mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-28 01:51:43 +00:00
pkg/wuffs: build without libc
This modifies our wuffs dependency so that it no longer requires libc. This unblocks using wuffs from libghostty-vt on freestanding targets, which we'll eventually want for some Kitty graphics stuff.
This commit is contained in:
13
pkg/wuffs/include/stdlib.h
Normal file
13
pkg/wuffs/include/stdlib.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user