diff options
Diffstat (limited to 'src/kernel/qapplication_x11.cpp')
-rw-r--r-- | src/kernel/qapplication_x11.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp index f5f2701ad..7eca9b26f 100644 --- a/src/kernel/qapplication_x11.cpp +++ b/src/kernel/qapplication_x11.cpp @@ -87,6 +87,7 @@ #include "ntqsettings.h" #include "ntqstylefactory.h" #include "ntqfileinfo.h" +#include "ntqthread.h" // Input method stuff - UNFINISHED #ifndef TQT_NO_IM @@ -94,9 +95,6 @@ #endif // TQT_NO_IM #include "qinternal_p.h" // shared double buffer cleanup -#if defined(TQT_THREAD_SUPPORT) -# include "ntqthread.h" -#endif #if defined(QT_DEBUG) && defined(Q_OS_LINUX) # include "ntqfile.h" @@ -1657,7 +1655,7 @@ void tqt_init_internal( int *argcptr, char **argv, setlocale( LC_ALL, "" ); // use correct char set mapping setlocale( LC_NUMERIC, "C" ); // make sprintf()/scanf() work -#if defined(TQT_THREAD_SUPPORT) +#ifndef TQT_NO_THREAD if (( tqt_is_gui_used ) && ( !display )) { // If TQt is running standalone with a GUI, initialize X11 threading XInitThreads(); @@ -2220,7 +2218,7 @@ void tqt_init_internal( int *argcptr, char **argv, TQPainter::initialize(); } -#if defined(TQT_THREAD_SUPPORT) +#ifndef TQT_NO_THREAD TQThread::initialize(); #endif @@ -2508,7 +2506,7 @@ void tqt_cleanup() TQColor::cleanup(); TQSharedDoubleBuffer::cleanup(); } -#if defined(TQT_THREAD_SUPPORT) +#ifndef TQT_NO_THREAD TQThread::cleanup(); #endif |