mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 09:38:26 +00:00
Made change to error.c for dummy error_strerror() permanent
This commit is contained in:
parent
41c83d3f67
commit
a0234377fc
1 changed files with 18 additions and 0 deletions
|
@ -86,4 +86,22 @@ LOW_LEVEL_CODE_CHECKS
|
||||||
snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", use_ret );
|
snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", use_ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else /* POLARSSL_ERROR_C */
|
||||||
|
|
||||||
|
#if defined(POLARSSL_ERROR_STRERROR_DUMMY)
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Provide an non-function in case POLARSSL_ERROR_C is not defined
|
||||||
|
*/
|
||||||
|
void error_strerror( int ret, char *buf, size_t buflen )
|
||||||
|
{
|
||||||
|
((void) ret);
|
||||||
|
|
||||||
|
if( buflen > 0 )
|
||||||
|
buf[0] = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* POLARSSL_ERROR_STRERROR_DUMMY */
|
||||||
#endif /* POLARSSL_ERROR_C */
|
#endif /* POLARSSL_ERROR_C */
|
||||||
|
|
Loading…
Reference in a new issue