summaryrefslogtreecommitdiffstats
path: root/src/kernel/qfont_x11.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-03-12 01:19:14 +0300
committerAlexander Golubev <fatzer2@gmail.com>2024-03-14 00:11:47 +0300
commitf7642b09c9e61f71e434aeb0ceb330d2ccaa25db (patch)
tree24caf3ca34bc91f4c3ea20b8fc436fdd71c44925 /src/kernel/qfont_x11.cpp
parentfa4475f36d6404a70d760ca95ac6a986a8846a3f (diff)
downloadtqt-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/kernel/qfont_x11.cpp')
-rw-r--r--src/kernel/qfont_x11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/qfont_x11.cpp b/src/kernel/qfont_x11.cpp
index 9f86734a4..7828315fd 100644
--- a/src/kernel/qfont_x11.cpp
+++ b/src/kernel/qfont_x11.cpp
@@ -269,13 +269,13 @@ void TQFont::initialize()
TQString sample;
if ( ttmp != -1 ) {
-#if defined(TQT_THREAD_SUPPORT) && defined(_POSIX_THREAD_SAFE_FUNCTIONS)
+#if !defined(TQT_NO_THREAD) && defined(_POSIX_THREAD_SAFE_FUNCTIONS)
// use the reentrant versions of localtime() where available
tm res;
tt = localtime_r( &ttmp, &res );
#else
tt = localtime( &ttmp );
-#endif // TQT_THREAD_SUPPORT && _POSIX_THREAD_SAFE_FUNCTIONS
+#endif // !TQT_NO_THREAD && _POSIX_THREAD_SAFE_FUNCTIONS
if ( tt != 0 && strftime( samp, 64, "%A%B", tt ) > 0 )
if ( codec )