condition threadsafe on ENABLE_PTHREAD_SUPPORT

This commit is contained in:
Love Hornquist Astrand
2009-12-13 22:48:56 -08:00
parent 85327d6242
commit a80ec519cd

View File

@@ -366,6 +366,12 @@ SQLITE_PRIVATE void sqlite3Coverage(int);
** Older versions of SQLite used an optional THREADSAFE macro.
** We support that for legacy
*/
#ifdef ENABLE_PTHREAD_SUPPORT
#define SQLITE_THREADSAFE 1
#else
#define SQLITE_THREADSAFE 0
#endif
#if !defined(SQLITE_THREADSAFE)
# define SQLITE_THREADSAFE 1
#endif