From 27e25cfb081417f311437de03e77e502f034f3c7 Mon Sep 17 00:00:00 2001 From: dekadenZ Date: Fri, 25 Apr 2014 03:20:56 +0200 Subject: [PATCH] Macros for format references to size_t --- neo/portability/inttypes.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 neo/portability/inttypes.h diff --git a/neo/portability/inttypes.h b/neo/portability/inttypes.h new file mode 100644 index 00000000..e1778af7 --- /dev/null +++ b/neo/portability/inttypes.h @@ -0,0 +1,13 @@ +#pragma once + +#ifdef _MSV_VER + +#define PRIuSIZE "Iu" +#define PRIxSIZE "Ix" + +#else // ifdef _MSV_VER + +#define PRIuSIZE "zu" +#define PRIxSIZE "zx" + +#endif // ifdef _MSV_VER