build(swift): include all source files
This commit is contained in:
parent
767b5486c6
commit
28d5272e71
3 changed files with 17 additions and 1 deletions
|
|
@ -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, ®ion->data, region->size);
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue