diff options
Diffstat (limited to 'common/common.h')
-rw-r--r-- | common/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/common.h b/common/common.h index 3e5ee1190f..e3411427a5 100644 --- a/common/common.h +++ b/common/common.h @@ -89,4 +89,7 @@ bool mp_append_escaped_string_noalloc(void *talloc_ctx, struct bstr *dst, bool mp_append_escaped_string(void *talloc_ctx, struct bstr *dst, struct bstr *src); +char *mp_strerror_buf(char *buf, size_t buf_size, int errnum); +#define mp_strerror(e) mp_strerror_buf((char[80]){0}, 80, e) + #endif /* MPLAYER_MPCOMMON_H */ |