msvc warnings

This commit is contained in:
Kelvin Sherlock 2019-01-04 22:58:56 -05:00
parent 1700285fd2
commit 55de506812
2 changed files with 7 additions and 2 deletions

View File

@ -16,6 +16,11 @@
#include <sys/xattr.h>
#endif
#ifdef _MSC_VER
#define strcasecmp stricmp
#define strncasecmp strnicmp
#endif
#define DEF_DISK_SIZE (800*1024)
#define MAX_FILE_NAMES 51

View File

@ -1213,11 +1213,11 @@ static word16 win_seek(HANDLE h, word16 base, word32 displacement, LARGE_INTEGER
break;
case markMinus:
m = FILE_CURRENT;
d.QuadPart = -displacement;
d.QuadPart = -(LONGLONG)displacement;
break;
case eofMinus:
m = FILE_END;
d.QuadPart = -displacement;
d.QuadPart = -(LONGLONG)displacement;
break;
default: