From 55de5068125bde4763e3a3548cd9fd9b867cce73 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Fri, 4 Jan 2019 22:58:56 -0500 Subject: [PATCH] msvc warnings --- src/to_pro.c | 5 +++++ src/win32_host_fst.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/to_pro.c b/src/to_pro.c index c74f70b..3beb9e3 100755 --- a/src/to_pro.c +++ b/src/to_pro.c @@ -16,6 +16,11 @@ #include #endif +#ifdef _MSC_VER +#define strcasecmp stricmp +#define strncasecmp strnicmp +#endif + #define DEF_DISK_SIZE (800*1024) #define MAX_FILE_NAMES 51 diff --git a/src/win32_host_fst.c b/src/win32_host_fst.c index 824edbc..8922a65 100644 --- a/src/win32_host_fst.c +++ b/src/win32_host_fst.c @@ -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: