1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Fix default #define for malloc/free

This commit is contained in:
Manuel Pégourié-Gonnard
2014-04-02 13:20:00 +02:00
parent 75a2860f26
commit 74bc68ac62
2 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,7 @@ static void *platform_malloc_uninit( size_t len )
return( NULL );
}
#define POLARSSL_PLATFORM_STD_MALLOC memory_malloc_uninit
#define POLARSSL_PLATFORM_STD_MALLOC platform_malloc_uninit
#endif /* !POLARSSL_PLATFORM_STD_MALLOC */
#if !defined(POLARSSL_PLATFORM_STD_FREE)
@ -46,7 +46,7 @@ static void platform_free_uninit( void *ptr )
((void) ptr);
}
#define POLARSSL_PLATFORM_STD_FREE memory_free_uninit
#define POLARSSL_PLATFORM_STD_FREE platform_free_uninit
#endif /* !POLARSSL_PLATFORM_STD_FREE */
void * (*polarssl_malloc)( size_t ) = POLARSSL_PLATFORM_STD_MALLOC;