aboutsummaryrefslogtreecommitdiff
path: root/include/cleanpath.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cleanpath.h')
-rw-r--r--include/cleanpath.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cleanpath.h b/include/cleanpath.h
index 321f921..6d50db4 100644
--- a/include/cleanpath.h
+++ b/include/cleanpath.h
@@ -36,6 +36,11 @@
#define CLEANPATH_VAR "PATH"
#define CLEANPATH_SEP ":"
+#if OS_WINDOWS
+#undef CLEANPATH_SEP
+#define CLEANPATH_SEP ";"
+#endif
+
struct CleanPath {
char *data; // Pointer to the path string
size_t data_len; // Length of the path string