Fix snprintf usage on windows

Introduced in 6432c7e
This commit is contained in:
Manuel Pégourié-Gonnard 2015-08-31 12:28:30 +02:00
parent 6512554f42
commit c728f9486b
2 changed files with 10 additions and 0 deletions

View file

@ -32,6 +32,7 @@
#include <stdio.h>
#define polarssl_fprintf fprintf
#define polarssl_printf printf
#define polarssl_snprintf snprintf
#endif
#if defined(POLARSSL_BIGNUM_C) && defined(POLARSSL_RSA_C) && \
@ -43,6 +44,10 @@
#include <string.h>
#endif
#if defined _MSC_VER && !defined snprintf
#define snprintf _snprintf
#endif
#if !defined(POLARSSL_BIGNUM_C) || !defined(POLARSSL_RSA_C) || \
!defined(POLARSSL_SHA256_C) || !defined(POLARSSL_FS_IO)
int main( void )

View file

@ -31,6 +31,7 @@
#else
#include <stdio.h>
#define polarssl_printf printf
#define polarssl_snprintf snprintf
#endif
#if defined(POLARSSL_BIGNUM_C) && defined(POLARSSL_RSA_C) && \
@ -42,6 +43,10 @@
#include <string.h>
#endif
#if defined _MSC_VER && !defined snprintf
#define snprintf _snprintf
#endif
#if !defined(POLARSSL_BIGNUM_C) || !defined(POLARSSL_RSA_C) || \
!defined(POLARSSL_SHA256_C) || !defined(POLARSSL_FS_IO)
int main( void )