mirror of
https://github.com/ziglang/zig.git
synced 2025-12-19 12:43:13 +00:00
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
10 lines
166 B
C
Vendored
10 lines
166 B
C
Vendored
#include <errno.h>
|
|
#include "pthread_impl.h"
|
|
|
|
int *__errno_location(void)
|
|
{
|
|
return &__pthread_self()->errno_val;
|
|
}
|
|
|
|
weak_alias(__errno_location, ___errno_location);
|