summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2017-01-22 18:20:44 +0100
committerWill Estes <westes575@gmail.com>2017-01-23 11:35:19 -0500
commitf5d87f1a26f4a5c3402497008ae10e9a1345d327 (patch)
tree8db59b22db0316a9daffee3eacfc1ad8110f8a81 /src/main.c
parent6f47a5232cc26a53ccdf4d49d5b678f1a6fc4999 (diff)
scanner: Use prefix when defining yywrap to avoid redefinition.
Fixes regression introduced in v2.6.3.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index f70b1aa..83f66b0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1586,9 +1586,9 @@ void readin (void)
if (!do_yywrap) {
if (!C_plus_plus) {
if (reentrant)
- outn ("\n#define yywrap(yyscanner) (/*CONSTCOND*/1)");
+ out_str ("\n#define %swrap(yyscanner) (/*CONSTCOND*/1)\n", prefix);
else
- outn ("\n#define yywrap() (/*CONSTCOND*/1)");
+ out_str ("\n#define %swrap() (/*CONSTCOND*/1)\n", prefix);
}
outn ("#define YY_SKIP_YYWRAP");
}