summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/tools/qcollator_posix.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/tools/qcollator_posix.cpp b/src/corelib/tools/qcollator_posix.cpp
index c6e589c174..a43618dcf1 100644
--- a/src/corelib/tools/qcollator_posix.cpp
+++ b/src/corelib/tools/qcollator_posix.cpp
@@ -44,6 +44,7 @@
#include "qstring.h"
#include <cstring>
+#include <cwchar>
QT_BEGIN_NAMESPACE
@@ -141,7 +142,7 @@ bool QCollatorSortKey::operator<(const QCollatorSortKey &otherKey) const
int QCollatorSortKey::compare(const QCollatorSortKey &otherKey) const
{
- return wcscmp(d->m_key.constData(),
+ return std::wcscmp(d->m_key.constData(),
otherKey.d->m_key.constData());
}