forked from qt-creator/qt-creator
Sqlite: Fix warning on MinGW
__thread/__declspec(thread) are compiler-dependent, not platform. Fix faulty define in the #else branch while at it. Change-Id: Ic7cc0e2c3bcf79e8f6e952ba92bcbc5f2ba5dccf Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
421046cb7b
commit
3baf28e48c
@@ -43,12 +43,12 @@
|
|||||||
|
|
||||||
#include "sqlite3.h"
|
#include "sqlite3.h"
|
||||||
|
|
||||||
#if defined(Q_OS_UNIX)
|
#if defined(Q_CC_GNU)
|
||||||
#define QTC_THREAD_LOCAL __thread
|
#define QTC_THREAD_LOCAL __thread
|
||||||
#elif defined(Q_OS_WIN)
|
#elif defined(Q_CC_MSVC)
|
||||||
#define QTC_THREAD_LOCAL __declspec(thread)
|
#define QTC_THREAD_LOCAL __declspec(thread)
|
||||||
#else
|
#else
|
||||||
#define static QTC_THREAD_LOCAL thread_local
|
#define QTC_THREAD_LOCAL thread_local
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SIZE_OF_BYTEARRAY_ARRAY(array) sizeof(array)/sizeof(QByteArray)
|
#define SIZE_OF_BYTEARRAY_ARRAY(array) sizeof(array)/sizeof(QByteArray)
|
||||||
|
Reference in New Issue
Block a user