diff options
Diffstat (limited to 'src/codecs')
| -rw-r--r-- | src/codecs/qtextcodec.cpp | 12 | ||||
| -rw-r--r-- | src/codecs/qtextcodecfactory.cpp | 6 |
2 files changed, 9 insertions, 9 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(); } diff --git a/src/codecs/qtextcodecfactory.cpp b/src/codecs/qtextcodecfactory.cpp index 6a570157b..6299b3f28 100644 --- a/src/codecs/qtextcodecfactory.cpp +++ b/src/codecs/qtextcodecfactory.cpp @@ -48,9 +48,9 @@ #include <private/qpluginmanager_p.h> #include "qtextcodecinterface_p.h" -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD # include <private/qmutexpool_p.h> -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD #include <stdlib.h> @@ -63,7 +63,7 @@ static void create_manager() if ( manager ) // already created return; -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD // protect manager creation TQMutexLocker locker( tqt_global_mutexpool ? tqt_global_mutexpool->get( &manager ) : 0); |
