mirror of
git://git.musl-libc.org/musl
synced 2024-12-17 04:05:05 +00:00
cbf35978a9
this is not too ugly and should result in significant code size and performance improvements for many programs.
22 lines
256 B
C
22 lines
256 B
C
#ifndef _ERRNO_H
|
|
#define _ERRNO_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <bits/errno.h>
|
|
|
|
#ifdef __GNUC__
|
|
__attribute__((const))
|
|
#endif
|
|
extern int *__errno_location(void);
|
|
#define errno (*__errno_location())
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|