fix some errors on GCC

This commit is contained in:
Gregory Wells
2025-08-12 19:58:50 -04:00
parent d7a13b16d1
commit ba67d0366d
2 changed files with 10 additions and 1 deletions

View File

@@ -1,4 +1,13 @@
#include "gryphn_array_list.h"
#include <stdlib.h>
GN_ARRAY_LIST_DEFINITION(uint32_t)
GN_ARRAY_LIST_DEFINITION(int)
void tester() {
uint32_tArrayList list = uint32_tArrayListCreate();
uint32_tArrayListResize(list, 1);
malloc(0);
}

View File

@@ -1,5 +1,5 @@
#pragma once
#include "stdlib.h"
#include "stdint.h"
#define GN_ARRAY_LIST_HEADER(type)\
typedef struct type##ArrayList_t* type##ArrayList; \