12345678910111213141516171819202122232425262728293031323334353637 |
- #ifndef MBEDTLS_CONFIG_H
- #include "mbedtls/config.h"
- #include <stdlib.h>
- static inline void *custom_calloc( size_t nmemb, size_t size )
- {
- if( nmemb == 0 || size == 0 )
- return( NULL );
- return( calloc( nmemb, size ) );
- }
- #define MBEDTLS_PLATFORM_MEMORY
- #define MBEDTLS_PLATFORM_STD_CALLOC custom_calloc
- #endif
|