diff options
author | drh <drh@noemail.net> | 2014-10-10 18:09:52 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-10-10 18:09:52 +0000 |
commit | ab993380a27226883381d21d5401d76df7fccaee (patch) | |
tree | 2e3d6b76d07606e3c9c7e9e933d317e40079b439 /src/threads.c | |
parent | e35626fabdb0183eafd481930e2a487a973cee3d (diff) | |
download | sqlite-ab993380a27226883381d21d5401d76df7fccaee.tar.gz sqlite-ab993380a27226883381d21d5401d76df7fccaee.zip |
Changes to enable compiling using VC6.
FossilOrigin-Name: 9ee5686ab3b0bca8cabdf455c75bd9410cdc5378
Diffstat (limited to 'src/threads.c')
-rw-r--r-- | src/threads.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threads.c b/src/threads.c index 213a129c9..6d39042fd 100644 --- a/src/threads.c +++ b/src/threads.c @@ -105,7 +105,7 @@ int sqlite3ThreadJoin(SQLiteThread *p, void **ppOut){ /* A running thread */ struct SQLiteThread { - uintptr_t tid; /* The thread handle */ + void *tid; /* The thread handle */ unsigned id; /* The thread identifier */ void *(*xTask)(void*); /* The routine to run as a thread */ void *pIn; /* Argument to xTask */ @@ -153,7 +153,7 @@ int sqlite3ThreadCreate( }else{ p->xTask = xTask; p->pIn = pIn; - p->tid = _beginthreadex(0, 0, sqlite3ThreadProc, p, 0, &p->id); + p->tid = (void*)_beginthreadex(0, 0, sqlite3ThreadProc, p, 0, &p->id); if( p->tid==0 ){ memset(p, 0, sizeof(*p)); } |