mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-12 00:26:27 -04:00
Fix snprintf usage on windows
Introduced in 6432c7e
This commit is contained in:
parent
6512554f42
commit
c728f9486b
@ -32,6 +32,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define polarssl_fprintf fprintf
|
#define polarssl_fprintf fprintf
|
||||||
#define polarssl_printf printf
|
#define polarssl_printf printf
|
||||||
|
#define polarssl_snprintf snprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(POLARSSL_BIGNUM_C) && defined(POLARSSL_RSA_C) && \
|
#if defined(POLARSSL_BIGNUM_C) && defined(POLARSSL_RSA_C) && \
|
||||||
@ -43,6 +44,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined _MSC_VER && !defined snprintf
|
||||||
|
#define snprintf _snprintf
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(POLARSSL_BIGNUM_C) || !defined(POLARSSL_RSA_C) || \
|
#if !defined(POLARSSL_BIGNUM_C) || !defined(POLARSSL_RSA_C) || \
|
||||||
!defined(POLARSSL_SHA256_C) || !defined(POLARSSL_FS_IO)
|
!defined(POLARSSL_SHA256_C) || !defined(POLARSSL_FS_IO)
|
||||||
int main( void )
|
int main( void )
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#else
|
#else
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define polarssl_printf printf
|
#define polarssl_printf printf
|
||||||
|
#define polarssl_snprintf snprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(POLARSSL_BIGNUM_C) && defined(POLARSSL_RSA_C) && \
|
#if defined(POLARSSL_BIGNUM_C) && defined(POLARSSL_RSA_C) && \
|
||||||
@ -42,6 +43,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined _MSC_VER && !defined snprintf
|
||||||
|
#define snprintf _snprintf
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(POLARSSL_BIGNUM_C) || !defined(POLARSSL_RSA_C) || \
|
#if !defined(POLARSSL_BIGNUM_C) || !defined(POLARSSL_RSA_C) || \
|
||||||
!defined(POLARSSL_SHA256_C) || !defined(POLARSSL_FS_IO)
|
!defined(POLARSSL_SHA256_C) || !defined(POLARSSL_FS_IO)
|
||||||
int main( void )
|
int main( void )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user