From bb969c3cccae159049adc20b2e13a17556331aae Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 19 Apr 2014 09:42:03 -0700 Subject: Add a SZFMT macro for a size_t string formatter --- OpenAL32/Include/alMain.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 8b66e4e7..44e36625 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -31,6 +31,15 @@ #endif #endif +#if defined(_WIN64) +#define SZFMT "%I64u" +#elif defined(_WIN32) +#define SZFMT "%d" +#else +#define SZFMT "%zu" +#endif + + #include "align.h" #include "atomic.h" #include "uintmap.h" -- cgit v1.2.3