1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Fix compile errors with NO_STD_FUNCTIONS

This commit is contained in:
Manuel Pégourié-Gonnard
2015-06-03 10:20:33 +01:00
parent b752715893
commit dccb80b7e5
4 changed files with 14 additions and 2 deletions

View File

@ -85,6 +85,8 @@ extern "C" {
#define polarssl_free POLARSSL_PLATFORM_FREE_MACRO
#define polarssl_malloc POLARSSL_PLATFORM_MALLOC_MACRO
#else
/* For size_t */
#include <stddef.h>
extern void * (*polarssl_malloc)( size_t len );
extern void (*polarssl_free)( void *ptr );
@ -108,6 +110,8 @@ int platform_set_malloc_free( void * (*malloc_func)( size_t ),
* The function pointers for fprintf
*/
#if defined(POLARSSL_PLATFORM_FPRINTF_ALT)
/* We need FILE * */
#include <stdio.h>
extern int (*polarssl_fprintf)( FILE *stream, const char *format, ... );
/**