1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Fix kvtest.c so that it compiles using MSVC.

FossilOrigin-Name: e2bbeae7e77cde531885ca492494a02e5322154d
This commit is contained in:
drh
2016-12-29 16:18:35 +00:00
parent 6739c692ba
commit d7b9b97c3b
3 changed files with 18 additions and 8 deletions

View File

@ -51,11 +51,21 @@ static const char zHelp[] =
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <assert.h>
#include <string.h>
#include "sqlite3.h"
#ifndef _WIN32
# include <unistd.h>
#else
/* Provide Windows equivalent for the needed parts of unistd.h */
# include <io.h>
# define R_OK 2
# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
# define access _access
#endif
/*
** Show thqe help text and quit.
*/