Fix ci break in builds without platform.h

This commit is contained in:
Janos Follath 2016-04-18 18:18:48 +01:00 committed by Simon Butcher
parent 1ed9f99ef3
commit 55abc21521
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@
#define mbedtls_fprintf fprintf
#define mbedtls_printf printf
#define mbedtls_snprintf snprintf
#define MBEDTLS_EXIT_SUCCESS EXIT_SUCCESS
#define MBEDTLS_EXIT_FAILURE EXIT_FAILURE
#endif
#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)

View File

@ -356,7 +356,7 @@ int main(int argc, const char *argv[])
if( unmet_dependencies[ i-1 ] == NULL )
{
mbedtls_printf("FATAL: Out of memory\n");
mbedtls_exit( MBEDTLS_PLATFORM_STD_EXIT_FAILURE );
mbedtls_exit( MBEDTLS_EXIT_FAILURE );
}
unmet_dep_count++;
}