summaryrefslogtreecommitdiff
path: root/src/zprep.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/zprep.h')
-rw-r--r--src/zprep.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/zprep.h b/src/zprep.h
index 06c70b6..8f4684f 100644
--- a/src/zprep.h
+++ b/src/zprep.h
@@ -7,6 +7,18 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
+
+#ifdef __COSMOPOLITAN__
+#include <cosmo.h>
+#define z_is_windows() IsWindows()
+#else
+#ifdef _WIN32
+#define z_is_windows() 1
+#else
+#define z_is_windows() 0
+#endif
+#endif
#ifdef _WIN32
#include <sys/types.h>
@@ -17,7 +29,9 @@
#endif
// **ZEN VERSION**
+#ifndef ZEN_VERSION
#define ZEN_VERSION "0.1.0"
+#endif
// ** ANSI COLORS **
#define COLOR_RESET "\033[0m"