summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/include/errno.h
blob: 70941d855a191b1d6e08f752a585bf71150ffa64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef ERRNO_H
#define ERRNO_H

#include "../../include/errno.h"

#ifdef __wasilibc_unmodified_upstream // Use alternate WASI libc headers
#ifdef __GNUC__
__attribute__((const))
#endif
hidden int *___errno_location(void);

#undef errno
#define errno (*___errno_location())
#else
// Use the WASI libc errno.
#endif

#endif