From fca10a6943637c80bcb9e8cf5467e88d2f540caa Mon Sep 17 00:00:00 2001 From: Sandrine Avakian Date: Fri, 27 May 2016 11:38:36 +0200 Subject: [PATCH] Fix SQLite3 vas on windows. --- coreapi/sqlite3_bctbx_vfs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coreapi/sqlite3_bctbx_vfs.c b/coreapi/sqlite3_bctbx_vfs.c index b7a86cabc..9e190106f 100644 --- a/coreapi/sqlite3_bctbx_vfs.c +++ b/coreapi/sqlite3_bctbx_vfs.c @@ -303,8 +303,11 @@ sqlite3_vfs *sqlite3_bctbx_vfs_create(void){ void sqlite3_bctbx_vfs_register( int makeDefault){ sqlite3_vfs* pVfsToUse = sqlite3_bctbx_vfs_create(); + #if _WIN32 + sqlite3_vfs* pDefault = sqlite3_vfs_find("win32"); + #else sqlite3_vfs* pDefault = sqlite3_vfs_find("unix-none"); - + #endif pVfsToUse->xAccess = pDefault->xAccess; pVfsToUse->xCurrentTime = pDefault->xCurrentTime;