mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-06-29 11:45:30 +02:00
fix strerror_r on managarm
This commit is contained in:
parent
a9c09e4d7d
commit
e8569eaef2
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ std::string NativeErrorToString(int e) {
|
||||||
return ret;
|
return ret;
|
||||||
#else
|
#else
|
||||||
char err_str[255];
|
char err_str[255];
|
||||||
#if defined(__ANDROID__) || \
|
#if defined(__managarm__) || defined(__ANDROID__) || \
|
||||||
(defined(__GLIBC__) && (_GNU_SOURCE || (_POSIX_C_SOURCE < 200112L && _XOPEN_SOURCE < 600)))
|
(defined(__GLIBC__) && (_GNU_SOURCE || (_POSIX_C_SOURCE < 200112L && _XOPEN_SOURCE < 600)))
|
||||||
// Thread safe (GNU-specific)
|
// Thread safe (GNU-specific)
|
||||||
const char* str = strerror_r(e, err_str, sizeof(err_str));
|
const char* str = strerror_r(e, err_str, sizeof(err_str));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue