diff options
author | bunnei <bunneidev@gmail.com> | 2022-12-18 08:37:37 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2023-06-03 09:05:27 +0200 |
commit | cdbab60bbbe315075ad7666c2b164140e4acb44b (patch) | |
tree | 0936c10fe320c1f049b8f362f373df306c7db74a /src/common | |
parent | common: fs: Implement for Android. (diff) | |
download | yuzu-cdbab60bbbe315075ad7666c2b164140e4acb44b.tar yuzu-cdbab60bbbe315075ad7666c2b164140e4acb44b.tar.gz yuzu-cdbab60bbbe315075ad7666c2b164140e4acb44b.tar.bz2 yuzu-cdbab60bbbe315075ad7666c2b164140e4acb44b.tar.lz yuzu-cdbab60bbbe315075ad7666c2b164140e4acb44b.tar.xz yuzu-cdbab60bbbe315075ad7666c2b164140e4acb44b.tar.zst yuzu-cdbab60bbbe315075ad7666c2b164140e4acb44b.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/error.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/error.cpp b/src/common/error.cpp index ddb03bd45..1b2009db7 100644 --- a/src/common/error.cpp +++ b/src/common/error.cpp @@ -30,7 +30,8 @@ std::string NativeErrorToString(int e) { return ret; #else 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) const char* str = strerror_r(e, err_str, sizeof(err_str)); return std::string(str); |