| 1 | From MB_CUR_MAX(3): "The MB_CUR_MAX macro defines an integer expression giving the maximum number of |
| 2 | bytes needed to represent a single wide character in the current locale. It is locale dependent and |
| 3 | therefore not a compile-time constant." |
| 4 | |
| 5 | Since libandroid-support.so supports multibyte characters we override the platform value of 1. |
| 6 | |
| 7 | diff -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 |