Skip to content

Commit

Permalink
Work around flex 2.6.3 bug by conditionally #undef yywrap.
Browse files Browse the repository at this point in the history
There's no sign on westes/flex#162 that they
will release a new flex with the fix soon.
  • Loading branch information
RalphCorderoy committed Mar 22, 2017
1 parent 0e7daaa commit e42cb44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sbr/dtimep.l
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e42cb44

Please sign in to comment.