summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/math.h4
-rw-r--r--newlib/libc/sys/linux/cmath/math_private.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h
index 16098c66c..1be7511dc 100644
--- a/newlib/libc/include/math.h
+++ b/newlib/libc/include/math.h
@@ -119,7 +119,7 @@ extern int __fpclassifyd (double x);
/* Non ANSI double precision functions. */
extern double infinity _PARAMS((void));
-extern double nan _PARAMS((void));
+extern double nan _PARAMS((const char *));
extern int isnan _PARAMS((double));
extern int isinf _PARAMS((double));
extern int finite _PARAMS((double));
@@ -234,7 +234,7 @@ extern float fminf _PARAMS((float, float));
extern float fmaf _PARAMS((float, float, float));
extern float infinityf _PARAMS((void));
-extern float nanf _PARAMS((void));
+extern float nanf _PARAMS((const char *));
extern int isnanf _PARAMS((float));
extern int isinff _PARAMS((float));
extern int finitef _PARAMS((float));
diff --git a/newlib/libc/sys/linux/cmath/math_private.h b/newlib/libc/sys/linux/cmath/math_private.h
index 6c4a472cf..148376c44 100644
--- a/newlib/libc/sys/linux/cmath/math_private.h
+++ b/newlib/libc/sys/linux/cmath/math_private.h
@@ -24,14 +24,14 @@
#define INFINITY HUGE_VALF
-#define __nan(x) nan()
+#define __nan nan
#define __isnan isnan
#define __isinf isinf
#define __copysignf copysignf
#define __copysign copysign
#define __isnanf isnanf
#define __isinff isinff
-#define __nanf(x) nanf()
+#define __nanf nanf
#define feraiseexcept(x) /* nothing */
#define __sincos sincos
#define __sincosf sincosf