musl/include/errno.h

22 lines
249 B
C
Raw Normal View History

2011-02-12 05:22:29 +00:00
#ifndef _ERRNO_H
#define _ERRNO_H
#ifdef __cplusplus
extern "C" {
#endif
#include <bits/errno.h>
#ifdef __GNUC__
__attribute__((const))
#endif
int *__errno_location(void);
2011-02-12 05:22:29 +00:00
#define errno (*__errno_location())
#ifdef __cplusplus
}
#endif
#endif