Make cmath patch part of the toolchain (#1149)
[termux-packages] / ndk-patches / cmath.cpppatch
1 diff -u -r ../../../../../../../../../massage-pristine/data/data/com.termux/files/usr/include/c++/v1/cmath ./cmath
2 --- ../../../../../../../../../massage-pristine/data/data/com.termux/files/usr/include/c++/v1/cmath 2018-01-03 00:47:31.973545021 +0100
3 +++ ./cmath 2018-01-03 00:48:02.453189261 +0100
4 @@ -302,7 +302,7 @@
5 */
6
7 #include <__config>
8 -#include <math.h>
9 +#include <c++/v1/math.h>
10
11 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
12 #pragma GCC system_header
13 diff -u -r ../../../../../../../../../massage-pristine/data/data/com.termux/files/usr/include/c++/v1/math.h ./math.h
14 --- ../../../../../../../../../massage-pristine/data/data/com.termux/files/usr/include/c++/v1/math.h 2018-01-03 00:47:31.985544880 +0100
15 +++ ./math.h 2018-01-03 00:48:24.732929153 +0100
16 @@ -298,7 +298,7 @@
17 #pragma GCC system_header
18 #endif
19
20 -#include_next <math.h>
21 +#include <../../math.h>
22
23 #ifdef __cplusplus
24