diff options
author | drh <drh@noemail.net> | 2009-05-07 14:11:52 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2009-05-07 14:11:52 +0000 |
commit | 79f02cef78847aa00f28edd80c8ebb6b171b4dc7 (patch) | |
tree | 7a8831909fba6fed6df365c275e00e5314e26942 /src/sqliteInt.h | |
parent | dff6c173ddbea02bf2eca8c344cd0b15c8cbeedb (diff) | |
download | sqlite-79f02cef78847aa00f28edd80c8ebb6b171b4dc7.tar.gz sqlite-79f02cef78847aa00f28edd80c8ebb6b171b4dc7.zip |
If compiling FTS3 in the amalgamation, include the ctype.h header file.
Ticket #3843. (CVS 6618)
FossilOrigin-Name: 660108ef7a3c45f735789ba1039be2c37a8b0d0e
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 82330f9d5..b5d786d73 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -11,7 +11,7 @@ ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.868 2009/05/04 11:42:30 danielk1977 Exp $ +** @(#) $Id: sqliteInt.h,v 1.869 2009/05/07 14:11:52 drh Exp $ */ #ifndef _SQLITEINT_H_ #define _SQLITEINT_H_ @@ -2268,6 +2268,15 @@ int sqlite3WalkSelectFrom(Walker*, Select*); #endif /* +** The ctype.h header is needed for non-ASCII systems. It is also +** needed by FTS3 when FTS3 is included in the amalgamation. +*/ +#if !defined(SQLITE_ASCII) || \ + (defined(SQLITE_ENABLE_FTS3) && defined(SQLITE_AMALGAMATION)) +# include <ctype.h> +#endif + +/* ** The following macros mimic the standard library functions toupper(), ** isspace(), isalnum(), isdigit() and isxdigit(), respectively. The ** sqlite versions only work for ASCII characters, regardless of locale. @@ -2281,7 +2290,6 @@ int sqlite3WalkSelectFrom(Walker*, Select*); # define sqlite3Isxdigit(x) (sqlite3CtypeMap[(unsigned char)(x)]&0x08) # define sqlite3Tolower(x) (sqlite3UpperToLower[(unsigned char)(x)]) #else -# include <ctype.h> # define sqlite3Toupper(x) toupper((unsigned char)(x)) # define sqlite3Isspace(x) isspace((unsigned char)(x)) # define sqlite3Isalnum(x) isalnum((unsigned char)(x)) |