Windows CE buildfix
authorAndreas Holzammer <andreas.holzammer@kdab.com>
Fri, 21 Sep 2012 07:32:07 +0000 (09:32 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 24 Sep 2012 07:59:31 +0000 (09:59 +0200)
Windows CE has a define for CONST,
so undef it.

Change-Id: I13d363657e91956c611dee4cf90cd17f6a0fa234
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>

src/qml/qml/qqmlengine.cpp
src/qml/qml/v4/qv4ir_p.h

index f88e17a..9a42523 100644 (file)
@@ -2065,7 +2065,7 @@ bool QQml_isFileCaseCorrect(const QString &fileName)
     QFileInfo info(fileName);
     const QString absolute = info.absoluteFilePath();
 
-#if defined(Q_OS_MAC)
+#if defined(Q_OS_MAC) || defined(Q_OS_WINCE)
     const QString canonical = info.canonicalFilePath();
 #elif defined(Q_OS_WIN)
     wchar_t buffer[1024];
index e8461ff..da7bb79 100644 (file)
 
 // #define DEBUG_IR_STRUCTURE
 
+#ifdef CONST
+#  undef CONST
+#endif
+
 QT_BEGIN_HEADER
 
 QT_BEGIN_NAMESPACE