extern "C" {
#endif
+#define EXPORT_SYMBOL __attribute__((visibility("default"),externally_visible))
+
/**
* \brief Translate a mbed TLS error code into a string representation,
* Result is truncated if necessary and always includes a terminating
#endif
-void mbedtls_strerror( int ret, char *buf, size_t buflen )
+EXPORT_SYMBOL void mbedtls_strerror( int ret, char *buf, size_t buflen )
{
size_t len;
int use_ret;
/*
* Provide an non-function in case MBEDTLS_ERROR_C is not defined
*/
-void mbedtls_strerror( int ret, char *buf, size_t buflen )
+EXPORT_SYMBOL void mbedtls_strerror( int ret, char *buf, size_t buflen )
{
((void) ret);