mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-21 20:54:25 +03:00

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
|
|
|