diff options
Diffstat (limited to 'src/tools/qdir_unix.cpp')
-rw-r--r-- | src/tools/qdir_unix.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/qdir_unix.cpp b/src/tools/qdir_unix.cpp index dcf01a861..6d94e57e5 100644 --- a/src/tools/qdir_unix.cpp +++ b/src/tools/qdir_unix.cpp @@ -48,9 +48,9 @@ #include "ntqregexp.h" #include "ntqstringlist.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> #include <limits.h> @@ -238,7 +238,7 @@ bool TQDir::readDirEntries( const TQString &nameFilter, if ( !dir ) return FALSE; // cannot read the directory -#if defined(TQT_THREAD_SUPPORT) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(Q_OS_CYGWIN) +#if !defined(TQT_NO_THREAD) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(Q_OS_CYGWIN) union { struct dirent mt_file; char b[sizeof(struct dirent) + MAXNAMLEN + 1]; @@ -246,7 +246,7 @@ bool TQDir::readDirEntries( const TQString &nameFilter, while ( readdir_r(dir, &u.mt_file, &file ) == 0 && file ) #else while ( (file = readdir(dir)) ) -#endif // TQT_THREAD_SUPPORT && _POSIX_THREAD_SAFE_FUNCTIONS +#endif // !TQT_NO_THREAD && _POSIX_THREAD_SAFE_FUNCTIONS { TQString fn = TQFile::decodeName(file->d_name); fi.setFile( *this, fn ); @@ -312,10 +312,10 @@ const TQFileInfoList * TQDir::drives() if ( !knownMemoryLeak ) { -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD TQMutexLocker locker( tqt_global_mutexpool ? tqt_global_mutexpool->get( &knownMemoryLeak ) : 0 ); -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD if ( !knownMemoryLeak ) { knownMemoryLeak = new TQFileInfoList; |