Somewhere you have removed the Windows.h header from being included where it is needed when SQLITE_THREADSAFE is set to 0 resulting in a failure to recognize windows defines.
In mutex_w32.c you need to include os_win.h whether or not SQLITE_MUTEX_W32 is defined. In other words the sequence #ifdef SQLITE_MUTEX_W32 #include "os_win.h" needs to be #include "os_win.h" #ifdef SQLITE_MUTEX_W32 otherwise windows.h is not included early enough and compilation of the vfs fails. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users