merge a few fixes by sh4rm4
[musl] / include / errno.h
1 #ifndef _ERRNO_H
2 #define _ERRNO_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <bits/errno.h>
9
10 #ifdef __GNUC__
11 __attribute__((const))
12 #endif
13 int *__errno_location(void);
14 #define errno (*__errno_location())
15
16 #ifdef __cplusplus
17 }
18 #endif
19
20 #endif
21