aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2021-05-07 10:35:28 -0400
committerGitHub <noreply@github.com>2021-05-07 10:35:28 -0400
commitb072d93e47949c9729c979fceef8a7c7bfd22d39 (patch)
tree96172b7aa41d6e0b4a44a4d8e67e7bcfd15511ef /include
parent003c7d1b27140d42c026c25fbca1cef545bfb5c7 (diff)
downloadcleanpath-b072d93e47949c9729c979fceef8a7c7bfd22d39.tar.gz
Improvements (#4)
* Move display code into functions * Mark windows supported * Guard against overruns * Add --list argument to docs
Diffstat (limited to 'include')
-rw-r--r--include/cleanpath.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cleanpath.h b/include/cleanpath.h
index b2d21f4..9f38188 100644
--- a/include/cleanpath.h
+++ b/include/cleanpath.h
@@ -16,6 +16,8 @@
#elif defined(_WIN32)
# undef OS_WINDOWS
# define OS_WINDOWS 1
+# undef OS_SUPPORTED
+# define OS_SUPPORTED 1
#elif defined(__linux) || defined(__linux__)
# undef OS_LINUX
@@ -24,6 +26,7 @@
# define OS_SUPPORTED 1
#endif
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>