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:
Orgad Shaneh
2015-12-10 11:48:12 +02:00
committed by Orgad Shaneh
parent 421046cb7b
commit 3baf28e48c

View File

@@ -43,12 +43,12 @@
#include "sqlite3.h"
#if defined(Q_OS_UNIX)
#if defined(Q_CC_GNU)
#define QTC_THREAD_LOCAL __thread
#elif defined(Q_OS_WIN)
#elif defined(Q_CC_MSVC)
#define QTC_THREAD_LOCAL __declspec(thread)
#else
#define static QTC_THREAD_LOCAL thread_local
#define QTC_THREAD_LOCAL thread_local
#endif
#define SIZE_OF_BYTEARRAY_ARRAY(array) sizeof(array)/sizeof(QByteArray)