summaryrefslogtreecommitdiff
path: root/patches/patch-Source_ThirdParty_ANGLE_src_compiler_glslang_y
blob: 3a6a8da4a8520e4ce27f2264ed13e3139287f94d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$OpenBSD: patch-Source_ThirdParty_ANGLE_src_compiler_glslang_y,v 1.1 2014/01/29 17:28:05 ajacoutot Exp $

XXX rm when bison(1) is updated
Source/ThirdParty/ANGLE/src/compiler/glslang.y:52.1-5: invalid directive: `%code'

--- Source/ThirdParty/ANGLE/src/compiler/glslang.y.orig	Mon Jan 20 10:26:24 2014
+++ Source/ThirdParty/ANGLE/src/compiler/glslang.y	Wed Jan 29 15:13:45 2014
@@ -49,13 +49,11 @@ WHICH GENERATES THE GLSL ES PARSER (glslang_tab.cpp AN
 %locations
 %lex-param {YYLEX_PARAM}
 
-%code requires {
+%union {
 #define YYLTYPE TSourceLoc
 #define YYLTYPE_IS_DECLARED 1
 #define SH_MAX_TOKEN_LENGTH 256  // WebGL spec.
-}
 
-%union {
     struct {
         union {
             TString *string;