# HG changeset patch # User Mike Becker # Date 1782827378 -7200 # Node ID eca455ac32c2b7f9900e2f863b0c22891f770263 # Parent 8a20001544c1c05a020028c87cf95e0ed0c80328 fix Windows build diff -r 8a20001544c1 -r eca455ac32c2 src/scanner.c --- a/src/scanner.c Tue Jun 30 14:19:08 2026 +0200 +++ b/src/scanner.c Tue Jun 30 15:49:38 2026 +0200 @@ -37,20 +37,20 @@ void get_working_dir(const char** out_ptr, size_t *out_len) { static char cwd[MAX_PATH]; - if (GetCurrentDirectory(MAX_PATH, cwd) == 0) { + if (GetCurrentDirectoryA(MAX_PATH, cwd) == 0) { fprintf(stderr, "Could not get current working directory.\n"); exit(1); } size_t len = strlen(cwd); - if (cwd[len - 1] != '/') { - cwd[len++] = '/'; + if (cwd[len - 1] != '\\') { + cwd[len++] = '\\'; cwd[len] = '\0'; } *out_ptr = cwd; *out_len = len; } bool path_is_relative(const char *path) { - return PathIsRelative(path); + return PathIsRelativeA(path); } int pathcmp(const char *p1, const char *p2) { return strcasecmp(p1, p2); diff -r 8a20001544c1 -r eca455ac32c2 vs/cline.vcxproj --- a/vs/cline.vcxproj Tue Jun 30 14:19:08 2026 +0200 +++ b/vs/cline.vcxproj Tue Jun 30 15:49:38 2026 +0200 @@ -84,6 +84,7 @@ Console true + $(CoreLibraryDependencies);%(AdditionalDependencies);Shlwapi.lib @@ -103,6 +104,7 @@ true true true + $(CoreLibraryDependencies);%(AdditionalDependencies);Shlwapi.lib