From e42cb4416714b2fde15a35627688d5bce64088d7 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Wed, 22 Mar 2017 10:51:34 +0000 Subject: [PATCH] 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. --- sbr/dtimep.l | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.56.0