diff --git a/include/ncpathmgr.h b/include/ncpathmgr.h index d46e52d82a..c9b8d35fbf 100644 --- a/include/ncpathmgr.h +++ b/include/ncpathmgr.h @@ -94,7 +94,7 @@ NCPD_MINGW | / | : #define WINPATH 1 #endif #endif -#ifdef _WIN64 +#ifdef _WIN32 #define STAT struct _stat64 * #else #define STAT struct _stat * diff --git a/libnczarr/zmap_file.c b/libnczarr/zmap_file.c index a867cc20c2..3ced98c55f 100644 --- a/libnczarr/zmap_file.c +++ b/libnczarr/zmap_file.c @@ -688,7 +688,7 @@ static int platformtestcontentbearing(const char* canonpath) { int ret = 0; - #ifdef _WIN64 + #ifdef _WIN32 struct _stat64 buf; #else struct stat buf; @@ -1173,7 +1173,7 @@ static int verify(const char* path, int isdir) { int ret = 0; - #ifdef _WIN64 + #ifdef _WIN32 struct _stat64 buf; #else struct stat buf; @@ -1193,7 +1193,7 @@ static int verifykey(const char* key, int isdir) { int ret = 0; - #ifdef _WIN64 + #ifdef _WIN32 struct _stat64 buf; #else struct stat buf; diff --git a/libnczarr/zplugins.c b/libnczarr/zplugins.c index aeb1ee3ebf..f639a686a4 100644 --- a/libnczarr/zplugins.c +++ b/libnczarr/zplugins.c @@ -221,7 +221,7 @@ NCZ_load_all_plugins(void) int ret = NC_NOERR; size_t i,j; struct NCglobalstate* gs = NC_getglobalstate(); - #ifdef _WIN64 + #ifdef _WIN32 struct _stat64 buf; #else struct stat buf;