diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-11-08 00:39:19 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-11-08 08:41:30 -0500 |
commit | 2729eb493218429f84beab04bad3c383135fb85c (patch) | |
tree | a0098666a068da56764e3ea5e482a2993af01748 /reloc.h | |
parent | c4c62db41d3aa70ae0c99b53d3d697285a7f0e18 (diff) | |
download | reloc-2729eb493218429f84beab04bad3c383135fb85c.tar.gz |
Handle OS-specific size_t printf formatting
Diffstat (limited to 'reloc.h')
-rw-r--r-- | reloc.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |