summaryrefslogtreecommitdiff
path: root/src/zprep.h
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 19:24:58 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 19:24:58 +0000
commit555141e35166c7f7d98c16f6f95fde8e57a651c2 (patch)
treee5cce20d7692b2ba99e68ed46ae545ea8923b94c /src/zprep.h
parentd5ad18ff3b97515c12a35f00d940e62bb34b7401 (diff)
Implement runtime OS detection and automatic versioningv0.1.2
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 ea38927..e7004ee 100644
--- a/src/zprep.h
+++ b/src/zprep.h
@@ -7,9 +7,23 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
+
+#ifdef __COSMOPOLITAN__
+#include "libc/dce.h"
+#define z_is_windows() IsWindows()
+#else
+#ifdef _WIN32
+#define z_is_windows() 1
+#else
+#define z_is_windows() 0
+#endif
+#endif
// **ZEN VERSION**
+#ifndef ZEN_VERSION
#define ZEN_VERSION "0.1.0"
+#endif
// ** ANSI COLORS **
#define COLOR_RESET "\033[0m"