summaryrefslogtreecommitdiff
path: root/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/compat.h b/compat.h
new file mode 100644
index 0000000..c17c8fb
--- /dev/null
+++ b/compat.h
@@ -0,0 +1,17 @@
+#if 1
+#include <strings.h>
+#include <string.h>
+#define xstrcasecmp strcasecmp
+#define xstrncasecmp strncasecmp
+#else
+int xstrcasecmp(const char *s1, const char *s2);
+int xstrncasecmp(const char *s1, const char *s2, size_t len);
+#endif
+
+/* non-ansi */
+void * xstrdup(const char *s);
+
+/* for mingw */
+#include <sys/stat.h>
+#include <sys/types.h>
+int xmkdir(const char *path, mode_t mode);