summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMenase Teshale <osome3717@gmail.com>2026-09-19 14:01:38 -0700
committerMenase Teshale <osome3717@gmail.com>2026-09-19 14:01:38 -0700
commit2b0803a7802b2fc842f8bdc881f5b92d8b45896d (patch)
tree0a808ecb7ab22f4218f5429d0d4774aa3d9bf5e0
parent6a2705f073114a7b4227c92a3c8a89e47985f547 (diff)
Windows build fully fixed
-rw-r--r--src/font.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/font.c b/src/font.c
index 93a2cfe..0177175 100644
--- a/src/font.c
+++ b/src/font.c
@@ -4,6 +4,7 @@
#include <errno.h>
#include <string.h>
#include <limits.h>
+#include "app.h"
#include <SDL3_image/SDL_image.h>
#define FILE_NAME_SIZE 300
@@ -45,7 +46,7 @@ void extract_dir_name(const char* filename, char dir_name_buffer[FILE_NAME_SIZE]
const char* head = filename;
const char* next;
- while ((next = strchr(head+1, '/')) != NULL) {
+ while ((next = strstr(head+1, DIRSEP)) != NULL) {
head=next;
}