summaryrefslogtreecommitdiffstats
path: root/libc-bottom-half/headers/public/__errno.h
blob: 4fd983ad7c44cbdd9fc7a3d1dae3d5a1c4d77361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __wasilibc___errno_h
#define __wasilibc___errno_h

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __cplusplus
extern thread_local int errno;
#else
extern _Thread_local int errno;
#endif

#define errno errno

#ifdef __cplusplus
}
#endif

#endif