diff -r 000000000000 -r 6474c204b198 gfx/angle/angle-build-unified.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gfx/angle/angle-build-unified.patch Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,61 @@ +From: Ehsan Akhagri +Subject: Bug 939588 - Fixes required to make angle compile in unified mode + +diff --git a/gfx/angle/src/compiler/ForLoopUnroll.h b/gfx/angle/src/compiler/ForLoopUnroll.h +index e800e25..7e10d82 100644 +--- a/gfx/angle/src/compiler/ForLoopUnroll.h ++++ b/gfx/angle/src/compiler/ForLoopUnroll.h +@@ -1,14 +1,17 @@ + // + // Copyright (c) 2011 The ANGLE Project Authors. All rights reserved. + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file. + // + ++#ifndef ForLoopUnroll_h ++#define ForLoopUnroll_h ++ + #include "compiler/intermediate.h" + + struct TLoopIndexInfo { + int id; + int initValue; + int stopValue; + int incrementValue; + TOperator op; +@@ -41,8 +44,9 @@ public: + private: + int getLoopIncrement(TIntermLoop* node); + + int evaluateIntConstant(TIntermConstantUnion* node); + + TVector mLoopIndexStack; + }; + ++#endif +diff --git a/gfx/angle/src/compiler/preprocessor/DiagnosticsBase.h b/gfx/angle/src/compiler/preprocessor/DiagnosticsBase.h +index 07bc411..e1829b0 100644 +--- a/gfx/angle/src/compiler/preprocessor/DiagnosticsBase.h ++++ b/gfx/angle/src/compiler/preprocessor/DiagnosticsBase.h +@@ -4,16 +4,21 @@ + // found in the LICENSE file. + // + + #ifndef COMPILER_PREPROCESSOR_DIAGNOSTICS_H_ + #define COMPILER_PREPROCESSOR_DIAGNOSTICS_H_ + + #include + ++// Windows.h #defines ERROR. ++#ifdef ERROR ++#undef ERROR ++#endif ++ + namespace pp + { + + struct SourceLocation; + + // Base class for reporting diagnostic messages. + // Derived classes are responsible for formatting and printing the messages. + class Diagnostics