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/codecs/qtextcodec.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/codecs/qtextcodec.cpp')
| -rw-r--r-- | src/codecs/qtextcodec.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/codecs/qtextcodec.cpp b/src/codecs/qtextcodec.cpp index 1c6df6953..8db9fd9e0 100644 --- a/src/codecs/qtextcodec.cpp +++ b/src/codecs/qtextcodec.cpp @@ -75,9 +75,9 @@ # include "qfontcodecs_p.h" #endif -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD # include <private/qmutexpool_p.h> -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD #include <stdlib.h> #include <ctype.h> @@ -121,12 +121,12 @@ void TQTextCodec::deleteAllCodecs() if ( !all ) return; -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD TQMutexLocker locker( tqt_global_mutexpool ? tqt_global_mutexpool->get( &all ) : 0 ); if ( !all ) return; -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD destroying_is_ok = TRUE; @@ -151,11 +151,11 @@ static inline void setup() { if ( all ) return; -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD TQMutexLocker locker( tqt_global_mutexpool ? tqt_global_mutexpool->get( &all ) : 0 ); if ( all ) return; -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD realSetup(); } |
