summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextengine.cpp
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2011-06-04 15:53:49 +0200
committerJiang Jiang <jiang.jiang@nokia.com>2011-06-08 10:19:14 +0200
commit5ce3fbb67b79c3732fd47b296ef9421398ca520c (patch)
tree7917b4f34095c03562a221e9fdce077f8ec39a5d /src/gui/text/qtextengine.cpp
parent74a1135341783449970d579b273d00c837ac14b0 (diff)
Fix warning in qtextengine compilation
enableHarfbuzz() should only be defined on Mac. Reviewed-by: Eskil
Diffstat (limited to 'src/gui/text/qtextengine.cpp')
-rw-r--r--src/gui/text/qtextengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextengine.cpp b/src/gui/text/qtextengine.cpp
index ad4f6d3fc6..e8e6c98eab 100644
--- a/src/gui/text/qtextengine.cpp
+++ b/src/gui/text/qtextengine.cpp
@@ -856,7 +856,7 @@ void QTextEngine::shapeLine(const QScriptLine &line)
}
}
-#if !defined(QT_ENABLE_HARFBUZZ_FOR_MAC)
+#if !defined(QT_ENABLE_HARFBUZZ_FOR_MAC) && defined(Q_WS_MAC)
static bool enableHarfBuzz()
{
static enum { Yes, No, Unknown } status = Unknown;