1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Changes for consistent use of SQLITE_OS_UNIX and removal of legacy OS_UNIX from testfixture source;

FossilOrigin-Name: 78b6eee200cab363be520d771375e44898f80e01
This commit is contained in:
shaneh
2011-04-04 21:48:01 +00:00
parent 6a64d67884
commit 3a2d29f8f4
10 changed files with 29 additions and 30 deletions

View File

@@ -213,14 +213,14 @@ static sqlite3_io_methods vfslog_io_methods = {
vfslogShmUnmap /* xShmUnmap */
};
#if defined(SQLITE_OS_UNIX) && !defined(NO_GETTOD)
#if SQLITE_OS_UNIX && !defined(NO_GETTOD)
#include <sys/time.h>
static sqlite3_uint64 vfslog_time(){
struct timeval sTime;
gettimeofday(&sTime, 0);
return sTime.tv_usec + (sqlite3_uint64)sTime.tv_sec * 1000000;
}
#elif defined(SQLITE_OS_WIN)
#elif SQLITE_OS_WIN
#include <windows.h>
#include <time.h>
static sqlite3_uint64 vfslog_time(){