mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-23 17:02:57 +00:00
common: error: Fix for Android.
This commit is contained in:
parent
f8b87e6fab
commit
cdbab60bbb
|
@ -30,7 +30,8 @@ std::string NativeErrorToString(int e) {
|
||||||
return ret;
|
return ret;
|
||||||
#else
|
#else
|
||||||
char err_str[255];
|
char err_str[255];
|
||||||
#if defined(__GLIBC__) && (_GNU_SOURCE || (_POSIX_C_SOURCE < 200112L && _XOPEN_SOURCE < 600))
|
#if defined(ANDROID) || \
|
||||||
|
(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));
|
||||||
return std::string(str);
|
return std::string(str);
|
||||||
|
|
Loading…
Reference in a new issue