From e3d36cb0249dcea99702db3694c0b1c2691d1ee2 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 21 Nov 2019 00:08:12 -0500 Subject: Add MSVC support --- reloc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'reloc.h') diff --git a/reloc.h b/reloc.h index 8412fe4..f978ae5 100644 --- a/reloc.h +++ b/reloc.h @@ -10,9 +10,12 @@ #include #include "version.h" -#if defined(_WIN32) || defined(_WIN64) +#if defined(__MINGW32__) || defined(__MINGW64__) #define DIRSEP '\\' #define SIZE_T_FMT "%I64u" +#elif defined(_MSC_VER) +#define DIRSEP '\\' +#define SIZE_T_FMT "%lu" #elif defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined(__MACH__) #define DIRSEP '/' #define SIZE_T_FMT "%lu" -- cgit