Skip to content

Commit c8b0d1a

Browse files
add header for memory api
1 parent 0ff1d61 commit c8b0d1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

code/logic/memory.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#include <stdlib.h>
1616
#include <string.h>
1717
#include <stdio.h>
18+
#if !defined(_MSC_VER)
19+
#include <malloc.h> // For posix_memalign on some platforms
20+
#endif
1821

1922
// Internal counters for memory stats (optional, for debug)
2023
static size_t g_alloc_count = 0;

0 commit comments

Comments
 (0)