Esenthel Changes.txt 559 B

12345678910111213141516171819202122232425262728293031
  1. add to "sqlite3.c":
  2. at the beginning:
  3. // ESENTHEL
  4. #ifdef __APPLE__
  5. #include "TargetConditionals.h"
  6. #if TARGET_IPHONE_SIMULATOR
  7. #define SQLITE_HOMEGROWN_RECURSIVE_MUTEX 1
  8. #endif
  9. #elif defined EMSCRIPTEN
  10. #define SQLITE_MAX_WORKER_THREADS 0
  11. #endif
  12. at the end:
  13. // ESENTHEL
  14. void SQLiteMutexEnter(sqlite3 *db) {sqlite3_mutex_enter(db->mutex);}
  15. void SQLiteMutexLeave(sqlite3 *db) {sqlite3_mutex_leave(db->mutex);}
  16. add to "sqlite3.h":
  17. // ESENTHEL
  18. extern "C"
  19. {
  20. void SQLiteMutexEnter(sqlite3 *db);
  21. void SQLiteMutexLeave(sqlite3 *db);
  22. }