From 3d00d8a155be29dd003d03bdc95eef5cdd6d6c67 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Thu, 7 Dec 2023 17:45:58 +0100 Subject: Update build script --- source/kit/file.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source') diff --git a/source/kit/file.c b/source/kit/file.c index 8fcf4fb..e5b834f 100644 --- a/source/kit/file.c +++ b/source/kit/file.c @@ -260,6 +260,9 @@ kit_str_t kit_path_take(kit_str_t path, i64 count) { return s; } +// TODO +// Long path support for Windows +// static void kit_prepare_path_(char *buf, kit_str_t path) { assert(path.size == 0 || path.values != NULL); assert(path.size + 1 < PATH_BUF_SIZE); @@ -268,6 +271,7 @@ static void kit_prepare_path_(char *buf, kit_str_t path) { if (path.size > 0 && path.size + 1 < PATH_BUF_SIZE) memcpy(buf, path.values, path.size); } + #define PREPARE_PATH_BUF_ \ char buf[PATH_BUF_SIZE]; \ kit_prepare_path_(buf, path) -- cgit v1.2.3