diff options
author | mistachkin <mistachkin@noemail.net> | 2013-03-07 06:42:53 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2013-03-07 06:42:53 +0000 |
commit | ef593f293e4724e0cfb39635b19c3bca36eb15a6 (patch) | |
tree | b7e43966569d25061f69aebe0b2268f86c160d54 /src/func.c | |
parent | 42c4bd02f4053ad2c11e5ab6120b9bb2c20d505d (diff) | |
download | sqlite-ef593f293e4724e0cfb39635b19c3bca36eb15a6.tar.gz sqlite-ef593f293e4724e0cfb39635b19c3bca36eb15a6.zip |
Fix two compilation issues, one warning and one error, that occur only when SQLITE_OMIT_UTF16 is defined.
FossilOrigin-Name: 10ace06be7fbe9a76a201c418b2af453c7a69043
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 4 |
1 files changed, 4 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 ), |