]> git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/src/include/errno.h
WASI libc prototype implementation.
[wasi-libc.git] / libc-top-half / musl / src / include / errno.h
1 #ifndef ERRNO_H
2 #define ERRNO_H
3
4 #include "../../include/errno.h"
5
6 #ifdef __wasilibc_unmodified_upstream
7 hidden int *___errno_location(void);
8
9 #undef errno
10 #define errno (*___errno_location())
11 #else
12 // Use the WASI libc errno.
13 #endif
14
15 #endif