summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glcpp/Makefile2
-rw-r--r--glcpp/glcpp-lex.l1
2 files changed, 2 insertions, 1 deletions
diff --git a/glcpp/Makefile b/glcpp/Makefile
index 3fb44ac3b2..1578a8ee30 100644
--- a/glcpp/Makefile
+++ b/glcpp/Makefile
@@ -13,7 +13,7 @@ glcpp: glcpp.o glcpp-lex.o glcpp-parse.o hash_table.o xtalloc.o
bison --debug --defines=$*.h --output=$*.c $^
%.c: %.l
- flex --prefix=glcpp_ --outfile=$@ $<
+ flex --outfile=$@ $<
glcpp-lex.c: glcpp-parse.h
diff --git a/glcpp/glcpp-lex.l b/glcpp/glcpp-lex.l
index 0d9a75415a..cc5f28f8f8 100644
--- a/glcpp/glcpp-lex.l
+++ b/glcpp/glcpp-lex.l
@@ -31,6 +31,7 @@
%option reentrant noyywrap
%option extra-type="glcpp_parser_t *"
+%option prefix="glcpp_"
SPACE [[:space:]]
NONSPACE [^[:space:]]