aboutsummaryrefslogtreecommitdiff
path: root/include/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/compat.h')
-rw-r--r--include/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/compat.h b/include/compat.h
index e82f2ad..59133c9 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -227,4 +227,10 @@ WCHAR *path_to_windows(const char *input);
int fnmatch(const char *, const char *, int);
#endif
+#if defined(_WIN32) || defined(__WINDOWS__)
+#define main sqfs_tools_main
+
+extern int sqfs_tools_main(int argc, char **argv);
+#endif
+
#endif /* COMPAT_H */