VERY experimental Nintendo Switch 2 emulator
C++
common: error: Fix for Android.
bunneic5b29ef3b756
diff --git a/src/common/error.cpp b/src/common/error.cppindex ddb03bd459..1b2009db71 100644--- a/src/common/error.cpp+++ b/src/common/error.cpp@@ -30,7 +30,8 @@ std::string NativeErrorToString(int e) {return ret;#elsechar 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);