Build fixes for Android including platform macro & missing mblen()

This commit is contained in:
Brian Cox 2016-06-28 22:16:31 -07:00
parent d6eb11a311
commit fb1f751488
2 changed files with 8 additions and 1 deletions

View File

@ -41,6 +41,13 @@
#include "charutil.h"
#include "ntmbs.h"
#if IS_ANDROID
int mblen(const char *s, size_t n)
{
return mbtowc(0, s, n);
}
#endif
//
// finds the next whole character in string identified by ['cur'-'end')
// identifies beginning of char in 'first', then end of character in 'last'

View File

@ -123,7 +123,7 @@
#define IS_DOS_DJGPP 1
#elif defined(__ANDROID_API__)
#elif defined(__ANDROID__)
#define OS OS_ANDROID
#define IS_ANDROID 1