aboutsummaryrefslogtreecommitdiff
path: root/reloc.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-11-08 00:39:19 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-11-08 08:41:30 -0500
commit2729eb493218429f84beab04bad3c383135fb85c (patch)
treea0098666a068da56764e3ea5e482a2993af01748 /reloc.h
parentc4c62db41d3aa70ae0c99b53d3d697285a7f0e18 (diff)
downloadreloc-2729eb493218429f84beab04bad3c383135fb85c.tar.gz
Handle OS-specific size_t printf formatting
Diffstat (limited to 'reloc.h')
-rw-r--r--reloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/reloc.h b/reloc.h
index bebd8bb..aaafbdd 100644
--- a/reloc.h
+++ b/reloc.h
@@ -14,8 +14,10 @@
#if defined(_WIN32) || defined(_WIN64)
#define DIRSEP '\\'
+#define SIZE_T_FMT "%I64u"
#elif defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined(__MACH__)
#define DIRSEP '/'
+#define SIZE_T_FMT "%lu"
#endif