qt48: fix darwin build with clang-5

This commit is contained in:
Daiderd Jordan 2018-02-13 22:16:24 +01:00
parent f8865b1181
commit 4c07aea8d8
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/gui/text/qfontengine_coretext.mm b/src/gui/text/qfontengine_coretext.mm
index 204d685..e05179e 100644
--- a/src/gui/text/qfontengine_coretext.mm
+++ b/src/gui/text/qfontengine_coretext.mm
@@ -886,7 +886,7 @@ void QCoreTextFontEngine::getUnscaledGlyph(glyph_t glyph, QPainterPath *path, gl
QFixed QCoreTextFontEngine::emSquareSize() const
{
- return QFixed::QFixed(int(CTFontGetUnitsPerEm(ctfont)));
+ return QFixed(int(CTFontGetUnitsPerEm(ctfont)));
}
QFontEngine *QCoreTextFontEngine::cloneWithSize(qreal pixelSize) const

View File

@ -68,6 +68,7 @@ stdenv.mkDerivation rec {
[ ./glib-2.32.patch
./libressl.patch
./parallel-configure.patch
./clang-5-darwin.patch
./qt-4.8.7-unixmake-darwin.patch
(substituteAll {
src = ./dlopen-absolute-paths.diff;