Fixed printf issues with size_t. Since Windows do not support %zu we have to use %Iu there instead.

Solved that with an ugly but needed macro.
This commit is contained in:
Jan Vidar Krey
2009-08-20 10:44:44 +02:00
parent 5bd258ca52
commit 1af613d9ce
4 changed files with 20 additions and 12 deletions

View File

@@ -89,6 +89,14 @@
#define HAVE_GETRLIMIT
#endif
/* printf and size_t support */
#if defined(WIN32)
/* Windows uses %Iu for size_t */
#define PRINTF_SIZE_T "%Iu"
#else
#define PRINTF_SIZE_T "%zu"
#endif
#ifdef SSL_SUPPORT
#include <openssl/ssl.h>
#include <openssl/err.h>