mirror of
https://github.com/InoriRus/Kyty.git
synced 2026-08-28 05:06:40 +00:00
17 lines
226 B
C++
17 lines
226 B
C++
#include "Emulator/Libs/Errno.h"
|
|
|
|
#ifdef KYTY_EMU_ENABLED
|
|
|
|
namespace Kyty::Libs::Posix {
|
|
|
|
static thread_local int g_errno = 0;
|
|
|
|
KYTY_SYSV_ABI int* GetErrorAddr()
|
|
{
|
|
return &g_errno;
|
|
}
|
|
|
|
} // namespace Kyty::Libs::Posix
|
|
|
|
#endif
|