aboutsummaryrefslogtreecommitdiff
path: root/reloc.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2019-11-21 01:05:50 -0500
committerGitHub <noreply@github.com>2019-11-21 01:05:50 -0500
commit0c2b6efeb29f184a42286bb9adeda0f1988c45e1 (patch)
tree54ebb52effff630eb528582349880e7e8a8d9896 /reloc.h
parent6aac41d2f220424591f306b15d0a47a7a11e88c2 (diff)
parent6a0aa493a001df88c31dc41d3bd03b9433347235 (diff)
downloadreloc-0c2b6efeb29f184a42286bb9adeda0f1988c45e1.tar.gz
Merge pull request #1 from jhunkeler/jhunkeler-patch-1
Implement GitHub Actions
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"