Debian Codegraph @

libc-top-half/musl/src/include/errno.h

raw
1 #ifndef ERRNO_H
2 #define ERRNO_H
3
4 #include "../../include/errno.h"
5
6 #ifdef __wasilibc_unmodified_upstream // Use alternate WASI libc headers
7 #ifdef __GNUC__
8 __attribute__((const))
9 #endif
10 hidden int *___errno_location(void);
11
12 #undef errno
13 #define errno (*___errno_location())
14 #else
15 // Use the WASI libc errno.
16 #endif
17
18 #endif