Commit 3baf28e4 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

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: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent 421046cb
......@@ -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)
......
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