19 lines
222 B
C
19 lines
222 B
C
|
|
#ifndef ERRNO_H_
|
||
|
|
#define ERRNO_H_
|
||
|
|
|
||
|
|
#include <sys/_errno.h>
|
||
|
|
|
||
|
|
#define errno (*__errno_location())
|
||
|
|
|
||
|
|
#if defined(__cplusplus)
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
extern int *__errno_location(void);
|
||
|
|
|
||
|
|
#if defined(__cplusplus)
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|