diff options
Diffstat (limited to 'src/include/errno.h')
-rw-r--r-- | src/include/errno.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/errno.h b/src/include/errno.h new file mode 100644 index 0000000..8ec4937 --- /dev/null +++ b/src/include/errno.h @@ -0,0 +1,14 @@ +#ifndef ERRNO_H +#define ERRNO_H + +#include "../../include/errno.h" + +#ifdef __GNUC__ +__attribute__((const)) +#endif +hidden int *___errno_location(void); + +#undef errno +#define errno (*___errno_location()) + +#endif |