From 69b1487e3e063cbecba96706c550d417b2f24e37 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Sat, 27 Apr 2024 18:15:56 +1000 Subject: getting us compiling on windows --- src/platform/path.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/platform/path.c') 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 #include #include #include "mem.h" #include "str.h" #if defined(CEL_PLATFORM_LINUX) || defined(CEL_PLATFORM_MAC) +#include 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 -- cgit v1.2.3-70-g09d2 From efea29ed9059303a5bb609ba0ce79c20ba894a23 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 27 Apr 2024 18:36:05 +1000 Subject: fix --- src/platform/path.c | 4 +--- src/renderer/backends/backend_opengl.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/platform/path.c') diff --git a/src/platform/path.c b/src/platform/path.c index bee4e9c..e49aa3a 100644 --- a/src/platform/path.c +++ b/src/platform/path.c @@ -16,7 +16,5 @@ path_opt path_parent(arena* a, const char* path) { } #endif #ifdef CEL_PLATFORM_WINDOWS -// TODO: path_opt path_parent(const char* path) +path_opt path_parent(arena* a, const char* path) {} #endif - -path_opt path_parent(arena* a, const char* path) {} \ No newline at end of file diff --git a/src/renderer/backends/backend_opengl.c b/src/renderer/backends/backend_opengl.c index 7467416..7fc277f 100644 --- a/src/renderer/backends/backend_opengl.c +++ b/src/renderer/backends/backend_opengl.c @@ -39,7 +39,7 @@ bool gfx_backend_init(renderer *ren) { glEnable(GL_DEPTH_TEST); opengl_state *internal = malloc(sizeof(opengl_state)); - ren->backend_state = (void *)internal; + ren->backend_context = (void *)internal; return true; } -- cgit v1.2.3-70-g09d2