diff options
| author | bunnei <bunneidev@gmail.com> | 2023-06-05 21:43:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-05 21:43:43 -0700 |
| commit | 31ad92b2870f6f5acf9a4089eecde67508fcd6b6 (patch) | |
| tree | a856ac45b1053009c4c11ee141c49d7faa4c8a19 /src/common/error.cpp | |
| parent | 12f79c6844cbd6dfde2a5185f0c22fdca0d33cb0 (diff) | |
| parent | f9db8b7c70251c91571c4ab2a83995f2f67e6976 (diff) | |
Merge pull request #10508 from yuzu-emu/lime
Project Lime - yuzu Android Port
Diffstat (limited to 'src/common/error.cpp')
| -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 ddb03bd459..1b2009db71 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); |
