gfx/angle/angle-build-unified.patch

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:1dff48a7777b
1 From: Ehsan Akhagri <ehsan@mozilla.com>
2 Subject: Bug 939588 - Fixes required to make angle compile in unified mode
3
4 diff --git a/gfx/angle/src/compiler/ForLoopUnroll.h b/gfx/angle/src/compiler/ForLoopUnroll.h
5 index e800e25..7e10d82 100644
6 --- a/gfx/angle/src/compiler/ForLoopUnroll.h
7 +++ b/gfx/angle/src/compiler/ForLoopUnroll.h
8 @@ -1,14 +1,17 @@
9 //
10 // Copyright (c) 2011 The ANGLE Project Authors. All rights reserved.
11 // Use of this source code is governed by a BSD-style license that can be
12 // found in the LICENSE file.
13 //
14
15 +#ifndef ForLoopUnroll_h
16 +#define ForLoopUnroll_h
17 +
18 #include "compiler/intermediate.h"
19
20 struct TLoopIndexInfo {
21 int id;
22 int initValue;
23 int stopValue;
24 int incrementValue;
25 TOperator op;
26 @@ -41,8 +44,9 @@ public:
27 private:
28 int getLoopIncrement(TIntermLoop* node);
29
30 int evaluateIntConstant(TIntermConstantUnion* node);
31
32 TVector<TLoopIndexInfo> mLoopIndexStack;
33 };
34
35 +#endif
36 diff --git a/gfx/angle/src/compiler/preprocessor/DiagnosticsBase.h b/gfx/angle/src/compiler/preprocessor/DiagnosticsBase.h
37 index 07bc411..e1829b0 100644
38 --- a/gfx/angle/src/compiler/preprocessor/DiagnosticsBase.h
39 +++ b/gfx/angle/src/compiler/preprocessor/DiagnosticsBase.h
40 @@ -4,16 +4,21 @@
41 // found in the LICENSE file.
42 //
43
44 #ifndef COMPILER_PREPROCESSOR_DIAGNOSTICS_H_
45 #define COMPILER_PREPROCESSOR_DIAGNOSTICS_H_
46
47 #include <string>
48
49 +// Windows.h #defines ERROR.
50 +#ifdef ERROR
51 +#undef ERROR
52 +#endif
53 +
54 namespace pp
55 {
56
57 struct SourceLocation;
58
59 // Base class for reporting diagnostic messages.
60 // Derived classes are responsible for formatting and printing the messages.
61 class Diagnostics

mercurial