X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fdb%2Fsqlite3db%2Fsqlite3db.h;h=b41f3b8f29bcd54d25cfdba7bb3eec3669b83a28;hb=df316253862dc50e8e5a790d9634ef90be37badb;hp=24c4a3a0f852fa5892a74b23dbed8234816ccc3c;hpb=d8f51eac91f86a1e00a05a5058a8fa9eb8732464;p=fms.git diff --git a/include/db/sqlite3db/sqlite3db.h b/include/db/sqlite3db/sqlite3db.h index 24c4a3a..b41f3b8 100644 --- a/include/db/sqlite3db/sqlite3db.h +++ b/include/db/sqlite3db/sqlite3db.h @@ -1,17 +1,23 @@ #ifndef _sqlite3db_ #define _sqlite3db_ -#include -#include +//#include +//#include #include #include - +#include "../../pthreadwrapper/mutex.h" #include "../sqlite3db.h" +#include "../../pthreadwrapper/singleton.h" + +#if SQLITE_VERSION_NUMBER<3005000 +#error "Your version of SQLite is too old! 3.5.0 or later is required." +#endif + namespace SQLite3DB { -class DB:public ZThread::Singleton +class DB:public PThread::Singleton { public: DB(); @@ -35,7 +41,7 @@ public: sqlite3 *GetDB() { return m_db; } - ZThread::Mutex m_mutex; // public so that recordset and statment can lock this mutex themselves + PThread::Mutex m_mutex; // public so that recordset and statment can lock this mutex themselves private: void Initialize();