aboutsummaryrefslogtreecommitdiff
path: root/reloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'reloc.h')
-rw-r--r--reloc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/reloc.h b/reloc.h
index 8412fe4..f978ae5 100644
--- a/reloc.h
+++ b/reloc.h
@@ -10,9 +10,12 @@
#include <string.h>
#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"