From: Ralph Corderoy Date: Wed, 22 Mar 2017 10:51:34 +0000 (+0000) Subject: Work around flex 2.6.3 bug by conditionally #undef yywrap. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/e42cb4416714b2fde15a35627688d5bce64088d7?hp=0e7daaa2daf6c668c8c6feb9da3c9a6639fa4e7e Work around flex 2.6.3 bug by conditionally #undef yywrap. There's no sign on https://github.com/westes/flex/issues/162 that they will release a new flex with the fix soon. --- diff --git a/sbr/dtimep.l b/sbr/dtimep.l index f1beb5c3..05a6d90b 100644 --- a/sbr/dtimep.l +++ b/sbr/dtimep.l @@ -14,6 +14,12 @@ /* Since we're looking at a string at a time, don't worry about * wrapping to the next buffer. */ +#if YY_FLEX_MAJOR_VERSION == 2 && \ + YY_FLEX_MINOR_VERSION == 6 && \ + YY_FLEX_SUBMINOR_VERSION == 3 +/* https://github.com/westes/flex/issues/162 */ +#undef yywrap +#endif #define yywrap() 1 #define YY_SKIP_YYWRAP