diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-17 18:12:33 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-17 18:12:33 -0500 |
commit | 14811a586d77ab9a1fa8bef360250992aead55d1 (patch) | |
tree | 2fab3e9d4140cfee65faea369d84a5f9e9566cda /util.c | |
parent | e719b02111d63aee561684d50e5fceaf1d099826 (diff) |
started process-win.c
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,6 @@ #if _WIN32 #include <intrin.h> +#include <direct.h> #endif static u8 util_popcount(u64 x) { @@ -274,3 +275,10 @@ static void path_full(char const *dir, char const *relpath, char *abspath, size_ } } +static void change_directory(char const *path) { +#if _WIN32 + _chdir(path); +#else + chdir(path); +#endif +}
\ No newline at end of file |