--- ../Audio-Scan-0.98-1/Scan.xs 2017-07-12 23:26:41 +1000 +++ Scan.xs 2017-07-12 23:25:17 +1000 @@ -12,7 +12,7 @@ #endif // Headers for stat support -#ifdef _MSC_VER +#ifdef __WIN32__ # include #else # include @@ -185,7 +185,7 @@ uint64_t size = 0; uint32_t hash; -#ifdef _MSC_VER +#ifdef __WIN32__ BOOL fOk; WIN32_FILE_ATTRIBUTE_DATA fileInfo; --- ../Audio-Scan-0.98-1/include/common.h 2017-07-12 23:26:52 +1000 +++ include/common.h 2017-07-12 23:24:48 +1000 @@ -33,7 +33,7 @@ #define DEFAULT_BLOCK_SIZE 4096 -#ifndef _MSC_VER +#ifndef __WIN32__ // We use the built-in GUID type on Windows typedef struct _GUID { uint32_t Data1; --- ../Audio-Scan-0.98-1/src/common.c 2017-07-12 23:27:09 +1000 +++ src/common.c 2017-07-12 23:24:10 +1000 @@ -205,7 +205,7 @@ off_t _file_size(PerlIO *infile) { -#ifdef _MSC_VER +#ifdef __WIN32__ // Win32 doesn't work right with fstat off_t file_size;