summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-17 18:12:33 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-17 18:12:33 -0500
commit14811a586d77ab9a1fa8bef360250992aead55d1 (patch)
tree2fab3e9d4140cfee65faea369d84a5f9e9566cda /util.c
parente719b02111d63aee561684d50e5fceaf1d099826 (diff)
started process-win.c
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/util.c b/util.c
index 24c6971..2872c37 100644
--- a/util.c
+++ b/util.c
@@ -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