diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/func.c | 4 | ||||
-rw-r--r-- | src/vdbemem.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/func.c b/src/func.c index 56cd6052b..de75ff6e7 100644 --- a/src/func.c +++ b/src/func.c @@ -981,6 +981,7 @@ static void unicodeFunc( ** an integer. It constructs a string where each character of the string ** is the unicode character for the corresponding integer argument. */ +#ifndef SQLITE_OMIT_UTF16 static void charFunc( sqlite3_context *context, int argc, @@ -1012,6 +1013,7 @@ static void charFunc( } sqlite3_result_text16le(context, (char*)z, (int)(zOut-z), sqlite3_free); } +#endif /* ** The hex() function. Interpret the argument as a blob. Return @@ -1641,7 +1643,9 @@ void sqlite3RegisterGlobalFunctions(void){ FUNCTION(substr, 2, 0, 0, substrFunc ), FUNCTION(substr, 3, 0, 0, substrFunc ), FUNCTION(unicode, 1, 0, 0, unicodeFunc ), +#ifndef SQLITE_OMIT_UTF16 FUNCTION(char, -1, 0, 0, charFunc ), +#endif FUNCTION(abs, 1, 0, 0, absFunc ), #ifndef SQLITE_OMIT_FLOATING_POINT FUNCTION(round, 1, 0, 0, roundFunc ), diff --git a/src/vdbemem.c b/src/vdbemem.c index fd964de2e..8fc222e2d 100644 --- a/src/vdbemem.c +++ b/src/vdbemem.c @@ -32,7 +32,9 @@ ** between formats. */ int sqlite3VdbeChangeEncoding(Mem *pMem, int desiredEnc){ +#ifndef SQLITE_OMIT_UTF16 int rc; +#endif assert( (pMem->flags&MEM_RowSet)==0 ); assert( desiredEnc==SQLITE_UTF8 || desiredEnc==SQLITE_UTF16LE || desiredEnc==SQLITE_UTF16BE ); |