[xml/sgml-commit] [linuxdoc-tools] 08/17: Fix compilation with >=flex-2.6.1
Agustín Martín Domingo
agmartin at moszumanska.debian.org
Wed May 4 17:56:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
agmartin pushed a commit to branch upstream
in repository linuxdoc-tools.
commit e12d5374c59d26d713ac131e4948f169df701ab1
Author: Ilya Tumaykin <itumaykin at gmail.com>
Date: Mon Apr 11 19:53:56 2016 +0300
Fix compilation with >=flex-2.6.1
flex devs reverted yyleng's type back to `int' in 2.6.1 [1].
It was previously changed from `int' to `yy_size_t' in 2.5.36 [2,3].
Adjust the related guard accordingly.
See also https://bugs.gentoo.org/show_bug.cgi?id=579490
[1]: https://github.com/westes/flex/commit/7a7c3dfe1bcb8230447ba1656f926b4b4cdfc457
[2]: https://github.com/westes/flex/commit/9ba3187a537d6a58d345f2874d06087fd4050399
[3]: https://gitlab.com/agmartin/linuxdoc-tools/commit/ada178bdcd05f57024934ea6a00cecfa95973509
Signed-off-by: Agustin Martin Domingo <agmartin at debian.org>
---
rtf-fix/rtf2rtf.l | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/rtf-fix/rtf2rtf.l b/rtf-fix/rtf2rtf.l
index d1f6a66..274b6ee 100644
--- a/rtf-fix/rtf2rtf.l
+++ b/rtf-fix/rtf2rtf.l
@@ -73,9 +73,8 @@ int skipnewline = 0;
extern char *yytext;
-#if YY_FLEX_MAJOR_VERSION > 2 \
- || (YY_FLEX_MAJOR_VERSION == 2 && YY_FLEX_MINOR_VERSION > 5) \
- || (YY_FLEX_MAJOR_VERSION == 2 && YY_FLEX_MINOR_VERSION == 5 && YY_FLEX_SUBMINOR_VERSION > 35)
+#if (YY_FLEX_MAJOR_VERSION == 2 && YY_FLEX_MINOR_VERSION == 5 && YY_FLEX_SUBMINOR_VERSION > 35) \
+ || (YY_FLEX_MAJOR_VERSION == 2 && YY_FLEX_MINOR_VERSION == 6 && YY_FLEX_SUBMINOR_VERSION == 0)
extern yy_size_t yyleng;
#else
extern int yyleng;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-xml-sgml/linuxdoc-tools.git
More information about the debian-xml-sgml-commit
mailing list