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/qcstring.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/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(); |
