188d8498715f7ca642b88640ea554aa95e1e2892
[ctsim.git] / include / msvc_compat.h
1 #ifndef __MSVC_COMPAT_H
2 #define __MSVC_COMPAT_H
3
4 #ifdef MSVC
5   typedef long off_t;
6   #define HAVE_STRING_H 1
7   #define HAVE_VSNPRINTF 1
8   #include <fcntl.h>
9   #define strdup _strdup
10   #define strcasecmp _stricmp
11   #define strncasecmp _strnicmp
12   #define snprintf _snprintf
13   #define vsnprintf _vsnprintf\r
14   #pragma warning(disable:4786)
15 #endif
16 #endif