clang on windows support

This commit is contained in:
wuggy 2026-09-10 08:32:59 -07:00
commit 1d44f05fba
22 changed files with 208 additions and 65 deletions

View file

@ -27219,6 +27219,11 @@ static malloc_zone_t* _sqliteZone_;
#if HAVE_MALLOC_H && HAVE_MALLOC_USABLE_SIZE
# define SQLITE_USE_MALLOC_H 1
# define SQLITE_USE_MALLOC_USABLE_SIZE 1
# if defined(_WIN32)
/* Mozilla's jemalloc wrapper provides this symbol, but the Windows
* malloc.h does not declare it for clang-cl. */
extern size_t malloc_usable_size(void *);
# endif
/*
** The MSVCRT has malloc_usable_size(), but it is called _msize(). The
** use of _msize() is automatic, but can be disabled by compiling with