diff options
author | Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp> | 2021-04-14 12:55:20 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp> | 2021-05-19 16:55:50 +0900 |
commit | 7d93c6ef9c59810d388f7f2730da0aa6aa3372c0 (patch) | |
tree | 53e4d0b65a1234930c66ca6c53144b2c9353eee5 /src/corelib/text/qunicodetools.cpp | |
parent | 5762bd236c51d836d8bbfec33e1b56c2dbe632d1 (diff) |
Fix build without features.library
Change-Id: I53eaaea149324d2495e794ba8bd58544e648e48e
Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/text/qunicodetools.cpp')
-rw-r--r-- | src/corelib/text/qunicodetools.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/text/qunicodetools.cpp b/src/corelib/text/qunicodetools.cpp index 2833aba696..f160c980cb 100644 --- a/src/corelib/text/qunicodetools.cpp +++ b/src/corelib/text/qunicodetools.cpp @@ -41,7 +41,9 @@ #include "qunicodetables_p.h" #include "qvarlengtharray.h" +#if QT_CONFIG(library) #include "qlibrary.h" +#endif #include <limits.h> @@ -1392,6 +1394,7 @@ static th_brk_def th_brk = nullptr; static th_next_cell_def th_next_cell = nullptr; static int init_libthai() { +#if QT_CONFIG(library) static bool initialized = false; if (!initialized && (!th_brk || !th_next_cell)) { th_brk = reinterpret_cast<th_brk_def>(QLibrary::resolve(QLatin1String("thai"), static_cast<int>(LIBTHAI_MAJOR), "th_brk")); @@ -1401,6 +1404,7 @@ static int init_libthai() { if (th_brk && th_next_cell) return 1; else +#endif return 0; } |