summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2024-05-07 15:31:42 -0700
committerAhmad Samir <a.samirh78@gmail.com>2024-05-09 04:14:24 +0000
commit4641945e45206508b44678011bb83da7722bad62 (patch)
tree4b85bf8c6b06abf930fcede2650f9ca4d79f4067 /src/corelib
parent55c6d6c86bf092401a4876faead603561cc54d50 (diff)
QThreadPool: wrap the #include <functional> in QT_CORE_REMOVED_SINCEHEADdev
Might improve compilation time a little for people using this header. Amends 0e7e1c33965c43932e6c0228acc2f68259533482. Change-Id: Ic5b1273bb0204c31afd8fffd17cd558e4578c359 Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/thread/qthreadpool.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/thread/qthreadpool.h b/src/corelib/thread/qthreadpool.h
index a097ace14b..8f0130bd84 100644
--- a/src/corelib/thread/qthreadpool.h
+++ b/src/corelib/thread/qthreadpool.h
@@ -9,7 +9,9 @@
#include <QtCore/qthread.h>
#include <QtCore/qrunnable.h>
+#if QT_CORE_REMOVED_SINCE(6, 6)
#include <functional>
+#endif
QT_REQUIRE_CONFIG(thread);