Removed nonstandard C constructor attribute

This commit is contained in:
2023-01-28 06:06:04 +00:00
parent c86c5800a7
commit 667efc2feb
2 changed files with 4 additions and 8 deletions

View File

@@ -11,7 +11,8 @@ STATIC_ASSERT(sizeof(int) == 4);
STATIC_ASSERT(sizeof(char) == 1);
//memory allocation
static Toy_RefStringAllocatorFn allocate;
extern void* Toy_private_defaultMemoryAllocator(void* pointer, size_t oldSize, size_t newSize);
static Toy_RefStringAllocatorFn allocate = Toy_private_defaultMemoryAllocator;
void Toy_setRefStringAllocatorFn(Toy_RefStringAllocatorFn allocator) {
allocate = allocator;