Commit dce9aa21 authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by Christian Stenger

Sqlite: Fix build on macOS

Change-Id: Ib0f98e528ecb619066e48cd75ee92de7cb61b74e
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 2c3dbabb
......@@ -38,9 +38,15 @@
#include "sqlite3.h"
#if defined(Q_OS_DARWIN) && defined(Q_CC_GNU)
#define QTC_THREAD_LOCAL __thread
#else
#define QTC_THREAD_LOCAL thread_local
#endif
#define SIZE_OF_BYTEARRAY_ARRAY(array) sizeof(array)/sizeof(QByteArray)
thread_local SqliteDatabaseBackend *sqliteDatabaseBackend = nullptr;
QTC_THREAD_LOCAL SqliteDatabaseBackend *sqliteDatabaseBackend = nullptr;
SqliteDatabaseBackend::SqliteDatabaseBackend()
: databaseHandle(nullptr),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment