use %u for size_t on microsoft compilers

This commit is contained in:
Palana
2013-12-07 16:50:05 +01:00
parent 0f484c4620
commit 968f9c03bd
2 changed files with 5 additions and 1 deletions

View File

@@ -57,10 +57,14 @@ typedef long off_t;
typedef int64_t off64_t;
#endif /* __off_t_defined */
#define SIZE_T_FORMAT "%u"
#else
#include <stdint.h>
#include <stdbool.h>
#include <sys/types.h>
#define SIZE_T_FORMAT "%zu"
#endif /* _MSC_VER */