]>
Commit | Line | Data |
---|---|---|
320054e8 DG |
1 | #ifndef ERRNO_H |
2 | #define ERRNO_H | |
3 | ||
4 | #include "../../include/errno.h" | |
5 | ||
e5f14be3 | 6 | #ifdef __wasilibc_unmodified_upstream // Use alternate WASI libc headers |
320054e8 DG |
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 |