From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- src/include/errno.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/include/errno.h (limited to 'src/include/errno.h') 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 -- cgit v1.2.3