mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
make sure stdio.h can be swtiched off if not available
This commit is contained in:
@@ -38,8 +38,6 @@
|
|||||||
#else
|
#else
|
||||||
#include <nio.h>
|
#include <nio.h>
|
||||||
#endif
|
#endif
|
||||||
#else
|
|
||||||
#include <stdio.h> /* ERR_printf */
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -681,6 +679,7 @@ enum {
|
|||||||
#if !defined(NO_FILESYSTEM) && !defined(NO_STDIO_FILESYSTEM)
|
#if !defined(NO_FILESYSTEM) && !defined(NO_STDIO_FILESYSTEM)
|
||||||
/* wolfSSL extension, provide last error from SSL_get_error
|
/* wolfSSL extension, provide last error from SSL_get_error
|
||||||
since not using thread storage error queue */
|
since not using thread storage error queue */
|
||||||
|
#include <stdio.h>
|
||||||
WOLFSSL_API void wolfSSL_ERR_print_errors_fp(FILE*, int err);
|
WOLFSSL_API void wolfSSL_ERR_print_errors_fp(FILE*, int err);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -224,9 +224,9 @@ WOLFSSL_API int wolfCrypt_Init(void);
|
|||||||
#define XBADFILE NULL
|
#define XBADFILE NULL
|
||||||
#else
|
#else
|
||||||
/* stdio, default case */
|
/* stdio, default case */
|
||||||
|
#include <stdio.h>
|
||||||
#define XFILE FILE*
|
#define XFILE FILE*
|
||||||
#if defined(WOLFSSL_MDK_ARM)
|
#if defined(WOLFSSL_MDK_ARM)
|
||||||
#include <stdio.h>
|
|
||||||
extern FILE * wolfSSL_fopen(const char *name, const char *mode) ;
|
extern FILE * wolfSSL_fopen(const char *name, const char *mode) ;
|
||||||
#define XFOPEN wolfSSL_fopen
|
#define XFOPEN wolfSSL_fopen
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user