diff options
| author | Menase Teshale <osome3717@gmail.com> | 2026-09-19 14:01:38 -0700 |
|---|---|---|
| committer | Menase Teshale <osome3717@gmail.com> | 2026-09-19 14:01:38 -0700 |
| commit | 2b0803a7802b2fc842f8bdc881f5b92d8b45896d (patch) | |
| tree | 0a808ecb7ab22f4218f5429d0d4774aa3d9bf5e0 | |
| parent | 6a2705f073114a7b4227c92a3c8a89e47985f547 (diff) | |
Windows build fully fixed
| -rw-r--r-- | src/font.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |
