summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2012-09-14 10:05:53 +1000
committerDave Airlie <[email protected]>2012-09-15 08:20:56 +1000
commitcc943c8470b38a1f13d2493f293a153f75754caa (patch)
treeb62afead3c59eed0e6ea4ec0c7ebca38ed8b3e03 /src/mesa/program
parenta29a4566354af53e3bdc4a925eddc0d7af2bf384 (diff)
mesa: use a prefix for the program lex
This avoids us making a global yylex symbol which will interfere will all sorts of apps. with libdricore which can't do symbol visibility currently we pollute the namespace with this. This is a candidate for 9.0 & stable branches. Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/program_lexer.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/program/program_lexer.l b/src/mesa/program/program_lexer.l
index 0a50dab97fd..0947bb0462c 100644
--- a/src/mesa/program/program_lexer.l
+++ b/src/mesa/program/program_lexer.l
@@ -165,6 +165,7 @@ szf [HR]?
cc C?
sat (_SAT)?
+%option prefix="_mesa_program_"
%option bison-bridge bison-locations reentrant noyywrap
%%