From be55ed02c0cdc590c044491b9b8f7cc8bdddd3c4 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 17 Sep 2013 11:48:15 +0200 Subject: Fix build with Bison 3 The Bison 3 generated sources do not seem to define YYID, so our YYLLOC_DEFAULT definition was broken. No idea what any of this means, but sberg said I can safely remove the YYID usage, so if it kills your pet, you know whom to blame. Change-Id: I464564be941e0a49da264057923bf8e8e82d5ffd --- unoidl/source/sourceprovider-parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unoidl/source') diff --git a/unoidl/source/sourceprovider-parser.y b/unoidl/source/sourceprovider-parser.y index 92deb23d96e4..c2e1d7e31d48 100644 --- a/unoidl/source/sourceprovider-parser.y +++ b/unoidl/source/sourceprovider-parser.y @@ -59,7 +59,7 @@ #include "sourceprovider-scanner.hxx" #define YYLLOC_DEFAULT(Current, Rhs, N) \ - do { (Current) = YYRHSLOC((Rhs), YYID((N)) ? 1 : 0); } while (YYID(0)) + do { (Current) = YYRHSLOC((Rhs), (N) ? 1 : 0); } while (0) void yyerror(YYLTYPE * locp, yyscan_t yyscanner, char const * msg) { assert(locp != 0); -- cgit