Commit b161f54d authored by Christian Strømme's avatar Christian Strømme Committed by The Qt Project
Browse files

Android: Fix for compilation error in clucene.


Android only provide stubs for wcstoll(3) and wctomb(3), to solve this
wcstoll(3) is replace by an internal equvialent, and wctomb(3) by
wcrtomb(3).

Change-Id: Ic30e5a809c2f6ab30b4e52883d3aae3ecc036194
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@digia.com>
parent 35f6adbb
Branches
Tags v5.1.0-beta1
No related merge requests found
Showing with 5 additions and 1 deletion
......@@ -100,7 +100,11 @@ void lucene_vfnwprintf(StringBuffer* buffer, size_t count, const wchar_t * forma
size_t v;
size_t len = tmp->length();
for (size_t i=0;i<len;i++){
#if !defined(__ANDROID__) && !defined(ANDROID)
v = wctomb(ob,*pointer);
#else
v = wcrtomb(ob,*pointer,0);
#endif // __ANDROID__
if ( v > 0 ){
ob[v]='\0';
fputs(ob,stdout);
......
......@@ -416,7 +416,7 @@ configure.
#define _CL_HAVE_WCSTOD 1
#endif
#if !defined(__SUNPRO_CC) && !defined(__SUNPRO_C) && !defined(__HP_aCC)
#if !defined(__SUNPRO_CC) && !defined(__SUNPRO_C) && !defined(__HP_aCC) && !defined(Q_OS_ANDROID)
/* Define to 1 if you have the `wcstoll' function. */
# ifndef _CL_HAVE_WCSTOLL
# define _CL_HAVE_WCSTOLL 1
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment