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> #include <sys/xattr.h>
#endif #endif
#ifdef _MSC_VER
#define strcasecmp stricmp
#define strncasecmp strnicmp
#endif
#define DEF_DISK_SIZE (800*1024) #define DEF_DISK_SIZE (800*1024)
#define MAX_FILE_NAMES 51 #define MAX_FILE_NAMES 51

View File

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