summaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-04-27 18:15:56 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-04-27 18:15:56 +1000
commit69b1487e3e063cbecba96706c550d417b2f24e37 (patch)
tree9e31e292ef1cbb6775c52d14bae1f536a1f51906 /src/platform
parent93c8d40b39fe55a626e66d412450fb4cca1f993b (diff)
getting us compiling on windows
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/path.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/platform/path.c b/src/platform/path.c
index 9572941..bee4e9c 100644
--- a/src/platform/path.c
+++ b/src/platform/path.c
@@ -1,12 +1,12 @@
#include "path.h"
-#include <libgen.h>
#include <stdlib.h>
#include <string.h>
#include "mem.h"
#include "str.h"
#if defined(CEL_PLATFORM_LINUX) || defined(CEL_PLATFORM_MAC)
+#include <libgen.h>
path_opt path_parent(arena* a, const char* path) {
// Duplicate the string because dirname doesnt like const literals
char* path_copy = arena_alloc(a, strlen(path) + 1);
@@ -17,4 +17,6 @@ path_opt path_parent(arena* a, const char* path) {
#endif
#ifdef CEL_PLATFORM_WINDOWS
// TODO: path_opt path_parent(const char* path)
-#endif \ No newline at end of file
+#endif
+
+path_opt path_parent(arena* a, const char* path) {} \ No newline at end of file