aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-05-06 17:10:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-05-06 17:10:52 -0400
commit9664dec490808a834ca009ac293eca9ef25a6e8e (patch)
treef632cee362c5f321a3cc91c929419b20b5b4daa9
parent6837f1af7f939ae741d4baf2d7b4723b64c3e2ee (diff)
downloadcleanpath-9664dec490808a834ca009ac293eca9ef25a6e8e.tar.gz
Fix include
-rw-r--r--lib/cleanpath.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/cleanpath.c b/lib/cleanpath.c
index 9c46c38..c64da40 100644
--- a/lib/cleanpath.c
+++ b/lib/cleanpath.c
@@ -1,9 +1,12 @@
#include <stdlib.h>
#include <string.h>
-#include <regex.h>
#include "config.h"
#include "cleanpath.h"
+#if !OS_WINDOWS
+#include <regex.h>
+#endif
+
/**
* Split path into parts by sep
* @param path a string (e.g. "/path1:/path2:/pathN")