This fixes warnings about missing prototypes, when building for
armv7, like these:
../math/arm/s_rint.c:36:1: warning: no previous prototype for function
'rint' [-Wmissing-prototypes]
36 | rint(double x)
| ^
../math/arm/s_rint.c:35:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
35 | double
| ^
| static
Signed-off-by: Martin Storsjö <[email protected]>
---
mingw-w64-crt/math/arm/s_rint.c | 1 +
mingw-w64-crt/math/arm/s_rintf.c | 1 +
mingw-w64-crt/math/arm/s_trunc.c | 1 +
mingw-w64-crt/math/arm/s_truncf.c | 1 +
4 files changed, 4 insertions(+)
diff --git a/mingw-w64-crt/math/arm/s_rint.c b/mingw-w64-crt/math/arm/s_rint.c
index 823a2e0c9..d9f39b493 100644
--- a/mingw-w64-crt/math/arm/s_rint.c
+++ b/mingw-w64-crt/math/arm/s_rint.c
@@ -23,6 +23,7 @@
*/
#include <float.h>
+#include <math.h>
#include "../bsd_private_base.h"
diff --git a/mingw-w64-crt/math/arm/s_rintf.c b/mingw-w64-crt/math/arm/s_rintf.c
index 0ec01704a..5fd5fe828 100644
--- a/mingw-w64-crt/math/arm/s_rintf.c
+++ b/mingw-w64-crt/math/arm/s_rintf.c
@@ -16,6 +16,7 @@
#include <sys/cdefs.h>
#include <float.h>
+#include <math.h>
#include <stdint.h>
#include "../bsd_private_base.h"
diff --git a/mingw-w64-crt/math/arm/s_trunc.c b/mingw-w64-crt/math/arm/s_trunc.c
index a7798df9c..60d77f8be 100644
--- a/mingw-w64-crt/math/arm/s_trunc.c
+++ b/mingw-w64-crt/math/arm/s_trunc.c
@@ -22,6 +22,7 @@
*/
#include <float.h>
+#include <math.h>
#include "../bsd_private_base.h"
diff --git a/mingw-w64-crt/math/arm/s_truncf.c
b/mingw-w64-crt/math/arm/s_truncf.c
index 8d66c5fbf..4961bd571 100644
--- a/mingw-w64-crt/math/arm/s_truncf.c
+++ b/mingw-w64-crt/math/arm/s_truncf.c
@@ -11,6 +11,7 @@
*/
#include <sys/cdefs.h>
+#include <math.h>
/*
* truncf(x)
--
2.43.0
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public