summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
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