Fix math.h / errno.h for libstdc++
This commit is contained in:
parent
90d32a319f
commit
4ad17e0ac4
|
@ -1,4 +1,11 @@
|
|||
|
||||
#ifndef _MATH_H
|
||||
#define _MATH_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// [C11/7.12.1 Treatment of error conditions]
|
||||
|
||||
#define MATH_ERRNO 1
|
||||
|
@ -21,9 +28,9 @@ double atan(double x);
|
|||
float atanf(float x);
|
||||
long double atanl(long double x);
|
||||
|
||||
double atan2(double x);
|
||||
float atan2f(float x);
|
||||
long double atan2l(long double x);
|
||||
double atan2(double x, double y);
|
||||
float atan2f(float x, float y);
|
||||
long double atan2l(long double x, long double y);
|
||||
|
||||
double cos(double x);
|
||||
float cosf(float x);
|
||||
|
@ -251,3 +258,9 @@ long double fminl(long double x, long double y);
|
|||
|
||||
// MISSING: [C11/7.12.13 Comparison macros]
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _MATH_H
|
||||
|
||||
|
|
|
@ -42,15 +42,15 @@ long double atanl(long double x) {
|
|||
__builtin_unreachable();
|
||||
}
|
||||
|
||||
double atan2(double x) {
|
||||
double atan2(double x, double y) {
|
||||
__ensure(!"Not implemented");
|
||||
__builtin_unreachable();
|
||||
}
|
||||
float atan2f(float x) {
|
||||
float atan2f(float x, float y) {
|
||||
__ensure(!"Not implemented");
|
||||
__builtin_unreachable();
|
||||
}
|
||||
long double atan2l(long double x) {
|
||||
long double atan2l(long double x, long double y) {
|
||||
__ensure(!"Not implemented");
|
||||
__builtin_unreachable();
|
||||
}
|
||||
|
|
|
@ -66,15 +66,16 @@
|
|||
#define EPERM 1063
|
||||
#define EPIPE 1064
|
||||
#define EPROTO 1065
|
||||
#define EPROTOTYPE 1066
|
||||
#define EROFS 1067
|
||||
#define ESPIPE 1068
|
||||
#define ESRCH 1069
|
||||
#define ESTALE 1070
|
||||
#define ETIMEDOUT 1071
|
||||
#define ETXTBSY 1072
|
||||
#define EWOULDBLOCK 1073
|
||||
#define EXDEV 1074
|
||||
#define EPROTONOSUPPORT 1066
|
||||
#define EPROTOTYPE 1067
|
||||
#define EROFS 1068
|
||||
#define ESPIPE 1069
|
||||
#define ESRCH 1070
|
||||
#define ESTALE 1071
|
||||
#define ETIMEDOUT 1072
|
||||
#define ETXTBSY 1073
|
||||
#define EWOULDBLOCK 1074
|
||||
#define EXDEV 1075
|
||||
|
||||
#endif // MLIBC_POSIX_ERRNO_H
|
||||
|
||||
|
|
Loading…
Reference in a new issue