2026-09-17 04:26:49

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie
2026-09-17 04:26:49 +00:00
parent c066e49fd3
commit 2f7e9453c0
+1 -1
View File
@@ -20,7 +20,7 @@ namespace Common {
// glibc, mlibc, musl, and newlib all define their own variants of strerror_r
// We don't need to use the preprocessor, we can just select depending on return type
template<typename T> std::string HandleStrerrorR(T r, char *err_str);
template<char*> std::string HandleStrerrorR(const char* r, char *) { return std::string{r}; }
template<char*> std::string HandleStrerrorR(char* r, char *) { return std::string{r}; }
template<char const*> std::string HandleStrerrorR(const char* r, char *) { return std::string{r}; }
template<int> std::string HandleStrerrorR(int r, char *err_str) {
return std::string{r != 0