summaryrefslogtreecommitdiff
path: root/include/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compat.h')
-rw-r--r--include/compat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/compat.h b/include/compat.h
index 26ad69b..82b1c7e 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -59,6 +59,9 @@
#define le16toh(x) (x)
#define le32toh(x) (x)
#define le64toh(x) (x)
+
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
#else
#include <endian.h>
#endif
@@ -164,4 +167,8 @@ char *strndup(const char *str, size_t max_len);
int getsubopt(char **opt, char *const *keys, char **val);
#endif
+#if defined(_WIN32) || defined(__WINDOWS__)
+WCHAR *path_to_windows(const char *input);
+#endif
+
#endif /* COMPAT_H */