diff options
| author | 2023-06-05 21:43:43 -0700 | |
|---|---|---|
| committer | 2023-06-05 21:43:43 -0700 | |
| commit | cb95d7fe1b6d81899fe6b279400da2c991e3132c (patch) | |
| tree | a856ac45b1053009c4c11ee141c49d7faa4c8a19 /src/common/error.cpp | |
| parent | Merge pull request #10611 from liamwhite/audio-deadlock (diff) | |
| parent | Merge pull request #10633 from t895/variable-surface-ratio (diff) | |
| download | yuzu-cb95d7fe1b6d81899fe6b279400da2c991e3132c.tar.gz yuzu-cb95d7fe1b6d81899fe6b279400da2c991e3132c.tar.xz yuzu-cb95d7fe1b6d81899fe6b279400da2c991e3132c.zip | |
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 ddb03bd45..1b2009db7 100644 --- a/src/common/error.cpp +++ b/src/common/error.cpp | |||
| @@ -30,7 +30,8 @@ std::string NativeErrorToString(int e) { | |||
| 30 | return ret; | 30 | return ret; |
| 31 | #else | 31 | #else |
| 32 | char err_str[255]; | 32 | char err_str[255]; |
| 33 | #if defined(__GLIBC__) && (_GNU_SOURCE || (_POSIX_C_SOURCE < 200112L && _XOPEN_SOURCE < 600)) | 33 | #if defined(ANDROID) || \ |
| 34 | (defined(__GLIBC__) && (_GNU_SOURCE || (_POSIX_C_SOURCE < 200112L && _XOPEN_SOURCE < 600))) | ||
| 34 | // Thread safe (GNU-specific) | 35 | // Thread safe (GNU-specific) |
| 35 | const char* str = strerror_r(e, err_str, sizeof(err_str)); | 36 | const char* str = strerror_r(e, err_str, sizeof(err_str)); |
| 36 | return std::string(str); | 37 | return std::string(str); |