termux-tools: reload-style -> reload-settings
[termux-packages] / packages / libandroid-support / stdlib.h.patch
CommitLineData
59f0d218
FF
1From MB_CUR_MAX(3): "The MB_CUR_MAX macro defines an integer expression giving the maximum number of
2bytes needed to represent a single wide character in the current locale. It is locale dependent and
3therefore not a compile-time constant."
4
5Since libandroid-support.so supports multibyte characters we override the platform value of 1.
6
7diff -N -u -r /home/fornwall/lib/android-ndk/sources/android/support/include/stdlib.h ./include/stdlib.h
8--- /home/fornwall/lib/android-ndk/sources/android/support/include/stdlib.h 2014-10-15 21:46:32.000000000 -0400
9+++ ./include/stdlib.h 2014-11-27 10:48:54.634215480 -0500
10@@ -36,6 +36,9 @@
11
12 #include <xlocale.h>
13
14+#undef MB_CUR_MAX
15+#define MB_CUR_MAX 4
16+
17 #ifdef __cplusplus
18 extern "C" {
19 #endif