diff options
Diffstat (limited to 'libc-bottom-half/headers/public/__errno.h')
-rw-r--r-- | libc-bottom-half/headers/public/__errno.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libc-bottom-half/headers/public/__errno.h b/libc-bottom-half/headers/public/__errno.h new file mode 100644 index 0000000..4fd983a --- /dev/null +++ b/libc-bottom-half/headers/public/__errno.h @@ -0,0 +1,20 @@ +#ifndef __wasilibc___errno_h +#define __wasilibc___errno_h + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +extern thread_local int errno; +#else +extern _Thread_local int errno; +#endif + +#define errno errno + +#ifdef __cplusplus +} +#endif + +#endif |