diff --git a/mednafen/msvc_compat.h b/mednafen/msvc_compat.h index 9b7986e..015db58 100644 --- a/mednafen/msvc_compat.h +++ b/mednafen/msvc_compat.h @@ -19,6 +19,7 @@ #ifdef _MSC_VER #undef UNICODE // Do not bother with UNICODE at this time. + #include #include #include @@ -40,8 +41,10 @@ typedef int ssize_t; #define strdup _strdup #define lseek _lseek -//#include -//#define strlen _tcslen +#if (_MSC_VER < 1310) +#include +#define strlen _tcslen +#endif # define S_IRUSR S_IREAD /* read, user */ # define S_IWUSR S_IWRITE /* write, user */