diff options
| author | Alexander Golubev <fatzer2@gmail.com> | 2024-03-12 01:19:14 +0300 |
|---|---|---|
| committer | Alexander Golubev <fatzer2@gmail.com> | 2024-03-14 00:11:47 +0300 |
| commit | f7642b09c9e61f71e434aeb0ceb330d2ccaa25db (patch) | |
| tree | 24caf3ca34bc91f4c3ea20b8fc436fdd71c44925 /src/tools/qcomlibrary.cpp | |
| parent | fa4475f36d6404a70d760ca95ac6a986a8846a3f (diff) | |
| download | tqt-f7642b09c9e61f71e434aeb0ceb330d2ccaa25db.tar.gz tqt-f7642b09c9e61f71e434aeb0ceb330d2ccaa25db.zip | |
TQT_THREAD_SUPPORT->!TQT_NO_THREAD: migrate sources
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'src/tools/qcomlibrary.cpp')
| -rw-r--r-- | src/tools/qcomlibrary.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/qcomlibrary.cpp b/src/tools/qcomlibrary.cpp index 20366db9a..40684f9ff 100644 --- a/src/tools/qcomlibrary.cpp +++ b/src/tools/qcomlibrary.cpp @@ -48,9 +48,9 @@ #include <errno.h> #endif // NO_ERROR_H -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD # include "qmutexpool_p.h" -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD #ifndef QT_DEBUG_COMPONENT # if defined(QT_DEBUG) @@ -94,7 +94,7 @@ static bool qt_verify( const TQString& library, uint version, uint flags, const TQCString &key, bool warn ) { uint our_flags = 1; -#if defined(TQT_THREAD_SUPPORT) +#ifndef TQT_NO_THREAD our_flags |= 2; #endif @@ -398,10 +398,10 @@ void TQComLibrary::createInstanceInternal() bool query_done = FALSE; bool warn_mismatch = TRUE; -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD TQMutexLocker locker( tqt_global_mutexpool ? tqt_global_mutexpool->get( &cache ) : 0 ); -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD if ( ! cache ) { cache = new TQSettings; |
