X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fmsvc_compat.h;fp=include%2Fmsvc_compat.h;h=d77f435bc793a1817af654ad60a9f44a8819b8a7;hp=0000000000000000000000000000000000000000;hb=aa41f74ce0ec15bc7952ed9da629dbe294429a61;hpb=e8ecf482866368fef96174bf7c3d99627322c096 diff --git a/include/msvc_compat.h b/include/msvc_compat.h new file mode 100644 index 0000000..d77f435 --- /dev/null +++ b/include/msvc_compat.h @@ -0,0 +1,15 @@ +#ifndef __MSVC_COMPAT_H +#define __MSVC_COMPAT_H + +#ifdef MSVC + typedef long off_t; + #define HAVE_STRING_H 1 + #define HAVE_VSNPRINTF 1 + #include + #define strdup _strdup + #define strcasecmp _stricmp + #define strncasecmp _strnicmp + #define snprintf _snprintf + #define vsnprintf _vsnprintf +#endif +#endif