diff options
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 +} + |