Files
c3c/resources/lib/std/os/macos.c3
Christoffer Lerno e4e8abbc6c Dev (#376)
Errno updates with errno for linux/win/macos. Updated $$ syntax to also match compiler constants.
2022-01-18 01:31:14 +01:00

16 lines
222 B
C

module std::os::macos;
import std::env;
$if (env::OS_TYPE == OsType.MACOSX):
extern fn int* __error();
fn int errno() @inline
{
return *__error();
}
fn void errno_set(int errno)
{
*(__error()) = errno;
}
$endif;