Unconditionally include <ctype.h> in sqliteInt.h, even in builds where

it is not needed.

FossilOrigin-Name: 825f01d7e258ac7981f715fd10708560381b079f0e026abc414cf56d16d862da
This commit is contained in:
drh
2024-10-03 16:31:08 +00:00
parent 1e2834dd45
commit 51bbf0c7b8
3 changed files with 8 additions and 16 deletions
+1 -9
View File
@@ -638,6 +638,7 @@
#include <string.h>
#include <assert.h>
#include <stddef.h>
#include <ctype.h>
/*
** Use a macro to replace memcpy() if compiled with SQLITE_INLINE_MEMCPY.
@@ -4632,15 +4633,6 @@ int sqlite3CantopenError(int);
# define SQLITE_ENABLE_FTS3 1
#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