gstreamer: Update from 1.12.3 to 1.14.0
[termux-packages] / ndk-patches / stdlib.h.patch
CommitLineData
a09f7e7a 1diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/stdlib.h ./usr/include/stdlib.h
392b4b6b
FF
2--- /home/fornwall/lib/android-ndk/sysroot/usr/include/stdlib.h 2017-11-09 09:57:12.000000000 +0100
3+++ ./usr/include/stdlib.h 2017-11-15 12:49:51.790799140 +0100
a09f7e7a
FF
4@@ -35,6 +35,7 @@
5 #include <alloca.h>
6 #include <malloc.h>
7 #include <stddef.h>
8+#include <stdint.h>
9
10 __BEGIN_DECLS
11
392b4b6b
FF
12@@ -205,8 +206,7 @@
13 size_t wcstombs(char* __dst, const wchar_t* __src, size_t __n);
845a978a
FF
14
15 #if __ANDROID_API__ >= __ANDROID_API_L__
16-size_t __ctype_get_mb_cur_max(void) __INTRODUCED_IN(21);
17-#define MB_CUR_MAX __ctype_get_mb_cur_max()
18+#define MB_CUR_MAX 4
19 #else
20 /*
21 * Pre-L we didn't have any locale support and so we were always the POSIX
392b4b6b
FF
22@@ -244,7 +244,9 @@
23 float strtof_l(const char* __s, char** __end_ptr, locale_t __l) __INTRODUCED_IN(26);
24 long strtol_l(const char* __s, char** __end_ptr, int, locale_t __l) __INTRODUCED_IN(26);
25 #else
26-// Implemented as static inlines before 26.
27+static __inline__ double strtod_l(const char* __s, char** __end_ptr, locale_t __l) { return strtod(__s, __end_ptr); }
28+static __inline__ float strtof_l(const char* __s, char** __end_ptr, locale_t __l) { return strtof(__s, __end_ptr); }
29+static __inline__ long strtol_l(const char* __s, char** __end_ptr, int __b, locale_t __l) { return strtol(__s, __end_ptr, __b); }
30 #endif
31
32 __END_DECLS