make sure stdio.h can be swtiched off if not available

pull/417/head
toddouska 2016-05-11 10:11:25 -07:00
parent 3bff6f10e3
commit cc16a543dd
2 changed files with 2 additions and 3 deletions

View File

@ -38,8 +38,6 @@
#else
#include <nio.h>
#endif
#else
#include <stdio.h> /* ERR_printf */
#endif
#endif
@ -681,6 +679,7 @@ enum {
#if !defined(NO_FILESYSTEM) && !defined(NO_STDIO_FILESYSTEM)
/* wolfSSL extension, provide last error from SSL_get_error
since not using thread storage error queue */
#include <stdio.h>
WOLFSSL_API void wolfSSL_ERR_print_errors_fp(FILE*, int err);
#endif

View File

@ -224,9 +224,9 @@ WOLFSSL_API int wolfCrypt_Init(void);
#define XBADFILE NULL
#else
/* stdio, default case */
#include <stdio.h>
#define XFILE FILE*
#if defined(WOLFSSL_MDK_ARM)
#include <stdio.h>
extern FILE * wolfSSL_fopen(const char *name, const char *mode) ;
#define XFOPEN wolfSSL_fopen
#else