summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontsubset_agl.cpp
diff options
context:
space:
mode:
authorSérgio Martins <sergio.martins@kdab.com>2013-09-25 15:29:37 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-25 17:22:52 +0200
commit774d74df91869d1178cbcdc7648994576a47f850 (patch)
tree76985fbf7d6c9d3464a37faad43c8126b73c975e /src/gui/text/qfontsubset_agl.cpp
parent25f7cddcab00b8906311950630a1fcee773b46a5 (diff)
Fix WinCE/MSVC2008 build errors related to std::lower_bound patches.
See QTBUG-33473 for more information about this compiler bug. Change-Id: I13b945350fdc38165c1515f0cdd75a53cf37cd6c Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/gui/text/qfontsubset_agl.cpp')
-rw-r--r--src/gui/text/qfontsubset_agl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/text/qfontsubset_agl.cpp b/src/gui/text/qfontsubset_agl.cpp
index 194ecb7ab5..a2c8f7b0a0 100644
--- a/src/gui/text/qfontsubset_agl.cpp
+++ b/src/gui/text/qfontsubset_agl.cpp
@@ -125,6 +125,11 @@ struct AGLEntry {
unsigned short index;
};
+#if defined(Q_CC_MSVC) && _MSC_VER < 1600
+inline bool operator<(AGLEntry entry1, AGLEntry entry2)
+{ return entry1.uc < entry2.uc; }
+#endif
+
inline bool operator<(unsigned short uc, AGLEntry entry)
{ return uc < entry.uc; }
inline bool operator<(AGLEntry entry, unsigned short uc)