diff options
Diffstat (limited to 'src/tools/qcstring.cpp')
| -rw-r--r-- | src/tools/qcstring.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/qcstring.cpp b/src/tools/qcstring.cpp index 83e351a23..4cab00095 100644 --- a/src/tools/qcstring.cpp +++ b/src/tools/qcstring.cpp @@ -43,9 +43,9 @@ #include "ntqregexp.h" #include "ntqdatastream.h" -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD # include <private/qmutexpool_p.h> -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD #include <stdio.h> #include <stdarg.h> @@ -312,10 +312,10 @@ TQ_UINT16 tqChecksum( const char *data, uint len ) { if ( !crc_tbl_init ) { // create lookup table -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD TQMutexLocker locker( tqt_global_mutexpool ? tqt_global_mutexpool->get( &crc_tbl_init ) : 0 ); -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD if ( !crc_tbl_init ) { createCRC16Table(); |
