mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Common/CommonFuncs: Add StrErrorWrapper function
This commit is contained in:
parent
130640e09d
commit
592f215857
2 changed files with 26 additions and 15 deletions
|
@ -41,6 +41,9 @@ __declspec(dllimport) void __stdcall DebugBreak(void);
|
|||
|
||||
namespace Common
|
||||
{
|
||||
// strerror_r wrapper to handle XSI and GNU versions.
|
||||
const char* StrErrorWrapper(int error, char* buffer, std::size_t length);
|
||||
|
||||
// Wrapper function to get last strerror(errno) string.
|
||||
// This function might change the error code.
|
||||
std::string LastStrerrorString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue