From 9df6e5ee7e48bd4d125b526ccdc1203494bcdcba Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 19 Jan 2012 06:56:36 +0000 Subject: [PATCH] provide defines for PRIu32 when missing --- include/libtorrent/config.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index c54a6da76..40112c4b7 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -42,7 +42,7 @@ POSSIBILITY OF SUCH DAMAGE. #error TORRENT_DEBUG_BUFFERS only works if you also disable pool allocators #endif -#ifndef WIN32 +#ifndef _MSC_VER #define __STDC_FORMAT_MACROS #include #endif @@ -52,9 +52,11 @@ POSSIBILITY OF SUCH DAMAGE. #if defined _MSC_VER || defined __MINGW32__ #define PRId64 "I64d" #define PRIu64 "I64u" +#define PRIu32 "u" #else #define PRId64 "lld" #define PRIu64 "llu" +#define PRIu32 "u" #endif #endif