Update: Change includes to point to the right place

This commit is contained in:
Rodolfo Barcelli Jo 2026-01-22 10:50:33 +08:00
parent c87b7d37fb
commit cf562b26b0

View file

@ -1,12 +1,12 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdlib.h>
#define BECS_MAX_ENTITIES 100 #define BECS_MAX_ENTITIES 100
#define BECS_MAX_COMPONENTS 2 #define BECS_MAX_COMPONENTS 2
#define BECS_IMPLEMENTATION #define BECS_IMPLEMENTATION
#include "../becs3.h" #include "../becs.h"
typedef struct compA { typedef struct compA {
uint32_t thing; uint32_t thing;
@ -29,7 +29,13 @@ int main(void) {
size_t MinMemorySize = BECS_GetMinMemoryArenaSize(componentSizes, 2); size_t MinMemorySize = BECS_GetMinMemoryArenaSize(componentSizes, 2);
printf("%lu\n", MinMemorySize); #ifdef _WIN32
printf("%llu\n", MinMemorySize);
#endif
#ifdef UNIX
printf("%lu\n", MinMemorySize);
#endif
void *memory= malloc(MinMemorySize); void *memory= malloc(MinMemorySize);
BECS_ECS ecs = BECS_InitECS(memory, MinMemorySize); BECS_ECS ecs = BECS_InitECS(memory, MinMemorySize);