summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/ntqglobal.h6
-rw-r--r--src/tools/ntqthreadstorage.h4
-rw-r--r--src/tools/qcriticalsection_p.cpp2
-rw-r--r--src/tools/qcriticalsection_p.h2
-rw-r--r--src/tools/qmutex_unix.cpp2
-rw-r--r--src/tools/qmutexpool_p.h4
-rw-r--r--src/tools/qsemaphore.cpp2
-rw-r--r--src/tools/qthreadinstance_p.h4
-rw-r--r--src/tools/qthreadstorage_unix.cpp2
-rw-r--r--src/tools/qwaitcondition_unix.cpp2
10 files changed, 24 insertions, 6 deletions
diff --git a/src/tools/ntqglobal.h b/src/tools/ntqglobal.h
index f83da9d79..4805869a8 100644
--- a/src/tools/ntqglobal.h
+++ b/src/tools/ntqglobal.h
@@ -822,6 +822,12 @@ class TQString;
#include "ntqfeatures.h"
#endif /* QT_H */
+// Keep the old flag for thread support in sync with the new one
+#ifndef TQT_NO_THREAD
+# define TQT_THREAD_SUPPORT
+#else
+# undef TQT_THREAD_SUPPORT
+#endif
//
// Create TQt DLL if QT_DLL is defined (Windows only)
diff --git a/src/tools/ntqthreadstorage.h b/src/tools/ntqthreadstorage.h
index 588621237..b9e0e11bb 100644
--- a/src/tools/ntqthreadstorage.h
+++ b/src/tools/ntqthreadstorage.h
@@ -39,12 +39,12 @@
#ifndef TQTHREADSTORAGE_H
#define TQTHREADSTORAGE_H
-#ifdef TQT_THREAD_SUPPORT
-
#ifndef QT_H
#include "ntqglobal.h"
#endif // QT_H
+#ifdef TQT_THREAD_SUPPORT
+
class TQ_EXPORT TQThreadStorageData
{
public:
diff --git a/src/tools/qcriticalsection_p.cpp b/src/tools/qcriticalsection_p.cpp
index 20c2127b0..534960952 100644
--- a/src/tools/qcriticalsection_p.cpp
+++ b/src/tools/qcriticalsection_p.cpp
@@ -36,6 +36,8 @@
**
**********************************************************************/
+#include "ntqglobal.h"
+
#if defined(TQT_THREAD_SUPPORT)
#include "qt_windows.h"
diff --git a/src/tools/qcriticalsection_p.h b/src/tools/qcriticalsection_p.h
index 330e141e1..0c362bc71 100644
--- a/src/tools/qcriticalsection_p.h
+++ b/src/tools/qcriticalsection_p.h
@@ -54,6 +54,8 @@
//
//
+#include "ntqglobal.h"
+
#if defined(TQT_THREAD_SUPPORT)
#if defined(TQ_WS_WIN)
diff --git a/src/tools/qmutex_unix.cpp b/src/tools/qmutex_unix.cpp
index 597d3e628..3c568dbb8 100644
--- a/src/tools/qmutex_unix.cpp
+++ b/src/tools/qmutex_unix.cpp
@@ -38,6 +38,8 @@
**
**********************************************************************/
+#include "ntqglobal.h"
+
#if defined(TQT_THREAD_SUPPORT)
#include "qplatformdefs.h"
diff --git a/src/tools/qmutexpool_p.h b/src/tools/qmutexpool_p.h
index a0bb28562..7f5ecabea 100644
--- a/src/tools/qmutexpool_p.h
+++ b/src/tools/qmutexpool_p.h
@@ -51,13 +51,13 @@
//
//
-#ifdef TQT_THREAD_SUPPORT
-
#ifndef QT_H
#include "ntqmutex.h"
#include "ntqmemarray.h"
#endif // QT_H
+#ifdef TQT_THREAD_SUPPORT
+
class TQ_EXPORT TQMutexPool
{
public:
diff --git a/src/tools/qsemaphore.cpp b/src/tools/qsemaphore.cpp
index 810837b4c..394834fdd 100644
--- a/src/tools/qsemaphore.cpp
+++ b/src/tools/qsemaphore.cpp
@@ -38,6 +38,8 @@
**
**********************************************************************/
+#include "ntqglobal.h"
+
#if defined(TQT_THREAD_SUPPORT)
#include "ntqsemaphore.h"
diff --git a/src/tools/qthreadinstance_p.h b/src/tools/qthreadinstance_p.h
index 14f0de591..57244452c 100644
--- a/src/tools/qthreadinstance_p.h
+++ b/src/tools/qthreadinstance_p.h
@@ -51,13 +51,13 @@
//
//
-#ifdef TQT_THREAD_SUPPORT
-
#ifndef QT_H
#include "ntqmutex.h"
#include "ntqwindowdefs.h"
#endif // QT_H
+#ifdef TQT_THREAD_SUPPORT
+
#ifdef Q_OS_UNIX
#include <pthread.h>
#endif
diff --git a/src/tools/qthreadstorage_unix.cpp b/src/tools/qthreadstorage_unix.cpp
index d53f6fb6e..7e34690b1 100644
--- a/src/tools/qthreadstorage_unix.cpp
+++ b/src/tools/qthreadstorage_unix.cpp
@@ -36,6 +36,8 @@
**
**********************************************************************/
+#include "ntqglobal.h"
+
#ifdef TQT_THREAD_SUPPORT
#include "qplatformdefs.h"
diff --git a/src/tools/qwaitcondition_unix.cpp b/src/tools/qwaitcondition_unix.cpp
index 62038bae5..866c524fd 100644
--- a/src/tools/qwaitcondition_unix.cpp
+++ b/src/tools/qwaitcondition_unix.cpp
@@ -38,6 +38,8 @@
**
**********************************************************************/
+#include "ntqglobal.h"
+
#if defined(TQT_THREAD_SUPPORT)
#include "qplatformdefs.h"