summaryrefslogtreecommitdiff
path: root/unoidl
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2013-09-17 11:48:15 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2013-09-17 12:02:40 +0200
commitbe55ed02c0cdc590c044491b9b8f7cc8bdddd3c4 (patch)
tree2acc325af55ba0200acda1b53a99b281edc39ea3 /unoidl
parent6fbf0762abf2947d2774d685414bd409361bc1fa (diff)
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
Diffstat (limited to 'unoidl')
-rw-r--r--unoidl/source/sourceprovider-parser.y2
1 files changed, 1 insertions, 1 deletions
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);