diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-18 15:14:02 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-18 15:14:02 -0500 |
commit | 5fa8e041356038034327ade41545677dd3007679 (patch) | |
tree | 9f6d8b729b163a55d93bf6d6b0775af6778cb087 /util.c | |
parent | 8f039627ab777d2b08c0c46d5acacbe84817d20f (diff) |
Finishing touches for v. 0.4
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 +} + |