Fix build against Windows.h
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 7 Feb 2013 15:38:06 +0000 (16:38 +0100)
committerLars Knoll <lars.knoll@digia.com>
Sat, 9 Feb 2013 09:44:46 +0000 (10:44 +0100)
The system header file is kind enough to define a macro called CONST,
which conflicts with our IR member function. Resolve the conflict by
deleting the macro.

Change-Id: I19ec1eadd54159a9bea128ef2a586d089f56b548
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/v4/qv4codegen.cpp
src/v4/qv4ir_p.h

index 0b62256..c44e54d 100644 (file)
 #include <iostream>
 #include <cassert>
 
+#ifdef CONST
+#undef CONST
+#endif
+
 using namespace QQmlJS;
 using namespace AST;
 
index 8ad783c..eefc039 100644 (file)
 #include <QtCore/QString>
 #include <QtCore/QBitArray>
 
+#ifdef CONST
+#undef CONST
+#endif
+
 QT_BEGIN_NAMESPACE
 
 class QTextStream;