build(swift): include all source files

This commit is contained in:
Lucas Marçal 2025-01-05 20:40:27 -03:00 committed by Amaan Qureshi
parent 767b5486c6
commit 28d5272e71
3 changed files with 17 additions and 1 deletions

View file

@ -3,6 +3,8 @@
// as needed, and freeing is mostly a noop. But in the special case of freeing
// the last-allocated pointer, we'll reuse that pointer again.
#ifdef TREE_SITTER_FEATURE_WASM
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
@ -107,3 +109,5 @@ void *realloc(void *ptr, size_t new_size) {
memcpy(result, &region->data, region->size);
return result;
}
#endif