diff --git a/src/builtins/sysfn.c b/src/builtins/sysfn.c index e3851fba..392aa518 100644 --- a/src/builtins/sysfn.c +++ b/src/builtins/sysfn.c @@ -1153,9 +1153,9 @@ static i32 sh_core(bool raw, B x, usz xia, B inObj, u64 iLen, B* s_outp, B* s_er } #elif defined(_WIN32) || defined(_WIN64) #define HAS_SH 1 -#include "../windows/winError.c" -#include "../windows/utf16.c" -#include "../windows/sh.c" +#include "../windows/winError.h" +#include "../windows/utf16.h" +#include "../windows/sh.h" static i32 sh_core(bool raw, B x, usz xia, B inObj, u64 iLen, B* s_outp, B* s_errp) { // allocate args diff --git a/src/utils/file.c b/src/utils/file.c index f60cd4bc..92306fc0 100644 --- a/src/utils/file.c +++ b/src/utils/file.c @@ -8,7 +8,7 @@ #if defined(_WIN32) #include - #include "../windows/utf16.c" + #include "../windows/utf16.h" // use wide char functions for unicode support / longer paths (potentially) #include "../windows/realpath.c" #endif @@ -297,7 +297,7 @@ B path_list(B path) { #include #else #include -#include "../windows/winError.c" +#include "../windows/winError.h" #endif typedef struct MmapHolder { diff --git a/src/windows/sh.c b/src/windows/sh.h similarity index 100% rename from src/windows/sh.c rename to src/windows/sh.h diff --git a/src/windows/utf16.c b/src/windows/utf16.h similarity index 100% rename from src/windows/utf16.c rename to src/windows/utf16.h diff --git a/src/windows/winError.c b/src/windows/winError.h similarity index 100% rename from src/windows/winError.c rename to src/windows/winError.h