]> git.proxmox.com Git - wasi-libc.git/blame - libc-top-half/musl/src/include/errno.h
Add comments explaining changes to upstream source files.
[wasi-libc.git] / libc-top-half / musl / src / include / errno.h
CommitLineData
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
7hidden 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