provide defines for PRIu32 when missing

This commit is contained in:
Arvid Norberg 2012-01-19 06:56:36 +00:00
parent 9c24b7e23f
commit 9df6e5ee7e
1 changed files with 3 additions and 1 deletions

View File

@ -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 <inttypes.h>
#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