make errno great again

This commit is contained in:
bumbread 2022-06-16 16:17:19 +11:00
parent f80957583b
commit 293b812a03
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#include <errno.h>
int errno;
_Thread_local int errno;

View File

@ -6,4 +6,4 @@
#define ERANGE 3
// TODO: make it thread-local
extern int errno;
extern _Thread_local int errno;