mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Allow enabling of dummy error_strerror() to support some use-cases
Enable a dummy error function to make use of error_strerror() in third party libraries easier. Disable if you run into name conflicts and want to really remove the error_strerror()
This commit is contained in:
@ -38,13 +38,13 @@
|
||||
#define USAGE \
|
||||
"\n usage: strerror <errorcode>\n"
|
||||
|
||||
#if !defined(POLARSSL_ERROR_C)
|
||||
#if !defined(POLARSSL_ERROR_C) && !defined(POLARSSL_ERROR_STRERROR_DUMMY)
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
((void) argc);
|
||||
((void) argv);
|
||||
|
||||
printf("POLARSSL_ERROR_C not defined.\n");
|
||||
printf("POLARSSL_ERROR_C and/or POLARSSL_ERROR_STRERRO_DUMMY not defined.\n");
|
||||
return( 0 );
|
||||
}
|
||||
#else
|
||||
|
Reference in New Issue
Block a user