summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-18 15:14:02 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-18 15:14:02 -0500
commit5fa8e041356038034327ade41545677dd3007679 (patch)
tree9f6d8b729b163a55d93bf6d6b0775af6778cb087 /util.c
parent8f039627ab777d2b08c0c46d5acacbe84817d20f (diff)
Finishing touches for v. 0.4
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/util.c b/util.c
index 2872c37..81c4ce3 100644
--- a/util.c
+++ b/util.c
@@ -1,6 +1,10 @@
#if _WIN32
#include <intrin.h>
#include <direct.h>
+#elif __unix__
+#include <unistd.h>
+#else
+#error "Unrecognized operating system."
#endif
static u8 util_popcount(u64 x) {
@@ -281,4 +285,5 @@ static void change_directory(char const *path) {
#else
chdir(path);
#endif
-} \ No newline at end of file
+}
+