--- src/shell.c +++ src/shell.c @@ -28,6 +28,12 @@ # define _LARGEFILE_SOURCE 1 #endif +#ifdef ANDROID +#ifndef NO_ANDROID_FUNCS +#include +#endif +#endif + #include #include #include @@ -1617,6 +1623,13 @@ sqlite3_create_function(db, "shellstatic", 0, SQLITE_UTF8, 0, shellstaticFunc, 0, 0); } +#ifdef ANDROID +#ifndef NO_ANDROID_FUNCS + register_android_functions(db, 0); + register_localized_collators(db, "", 0); +#endif +#endif + if( db==0 || SQLITE_OK!=sqlite3_errcode(db) ){ fprintf(stderr,"Error: unable to open database \"%s\": %s\n", p->zDbFilename, sqlite3_errmsg(db));