--- /dev/null
+#ifndef __MSVC_COMPAT_H
+#define __MSVC_COMPAT_H
+
+#ifdef MSVC
+ typedef long off_t;
+ #define HAVE_STRING_H 1
+ #define HAVE_VSNPRINTF 1
+ #include <fcntl.h>
+ #define strdup _strdup
+ #define strcasecmp _stricmp
+ #define strncasecmp _strnicmp
+ #define snprintf _snprintf
+ #define vsnprintf _vsnprintf
+#endif
+#endif