From d6c5c7f208e8066fb3c2fc5ae1a471c6ee43bc0e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 14 Jul 2018 05:29:17 +0200 Subject: [PATCH] Pre-MSVC 2013 did not support PRIu32, add workaround --- libretro-common/include/retro_miscellaneous.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretro-common/include/retro_miscellaneous.h b/libretro-common/include/retro_miscellaneous.h index 2988e5efe6..2fd97d54c1 100644 --- a/libretro-common/include/retro_miscellaneous.h +++ b/libretro-common/include/retro_miscellaneous.h @@ -159,7 +159,11 @@ typedef struct # ifdef _WIN64 # define PRI_SIZET PRIu64 # else +#if _MSC_VER == 1800 # define PRI_SIZET PRIu32 +#else +# define PRI_SIZET "u" +#endif # endif #else # define PRI_SIZET "zu"