diff options
author | Alexander Golubev <[email protected]> | 2024-03-12 01:19:14 +0300 |
---|---|---|
committer | Alexander Golubev <[email protected]> | 2024-03-14 00:11:47 +0300 |
commit | f7642b09c9e61f71e434aeb0ceb330d2ccaa25db (patch) | |
tree | 24caf3ca34bc91f4c3ea20b8fc436fdd71c44925 /src/dialogs/qfiledialog.cpp | |
parent | fa4475f36d6404a70d760ca95ac6a986a8846a3f (diff) | |
download | tqt3-f7642b09c9e61f71e434aeb0ceb330d2ccaa25db.tar.gz tqt3-f7642b09c9e61f71e434aeb0ceb330d2ccaa25db.zip |
TQT_THREAD_SUPPORT->!TQT_NO_THREAD: migrate sources
Signed-off-by: Alexander Golubev <[email protected]>
Diffstat (limited to 'src/dialogs/qfiledialog.cpp')
-rw-r--r-- | src/dialogs/qfiledialog.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dialogs/qfiledialog.cpp b/src/dialogs/qfiledialog.cpp index b3dc48e73..b81f04df3 100644 --- a/src/dialogs/qfiledialog.cpp +++ b/src/dialogs/qfiledialog.cpp @@ -99,9 +99,9 @@ #endif #ifdef TQ_WS_WIN -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD # include <private/qmutexpool_p.h> -#endif // TQT_THREAD_SUPPORT +#endif // TQT_NO_THREAD #endif // TQ_WS_WIN #if !defined(Q_OS_TEMP) @@ -526,7 +526,7 @@ static void resolveLibs() static bool triedResolve = FALSE; if ( !triedResolve ) { -#ifdef TQT_THREAD_SUPPORT +#ifndef TQT_NO_THREAD // protect initialization TQMutexLocker locker( tqt_global_mutexpool ? tqt_global_mutexpool->get( &triedResolve ) : 0 ); @@ -3196,7 +3196,7 @@ void TQFileDialog::setDir( const TQString & pathstr ) i++; TQCString user; if ( i == 1 ) { -#if defined(TQT_THREAD_SUPPORT) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) +#if !defined(TQT_NO_THREAD) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) # ifndef _POSIX_LOGIN_NAME_MAX # define _POSIX_LOGIN_NAME_MAX 9 @@ -3209,13 +3209,13 @@ void TQFileDialog::setDir( const TQString & pathstr ) #else user = ::getlogin(); if ( !user ) -#endif +#endif // !TQT_NO_THREAD && _POSIX_THREAD_SAFE_FUNCTIONS user = getenv( "LOGNAME" ); } else user = dr.mid( 1, i-1 ).local8Bit(); dr = dr.mid( i, dr.length() ); struct passwd *pw; -#if defined(TQT_THREAD_SUPPORT) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(Q_OS_FREEBSD) && !defined(Q_OS_OPENBSD) +#if !defined(TQT_NO_THREAD) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && !defined(Q_OS_FREEBSD) && !defined(Q_OS_OPENBSD) struct passwd mt_pw; char buffer[2048]; if ( ::getpwnam_r( user, &mt_pw, buffer, 2048, &pw ) == 0 && pw == &mt_pw ) |