]> diplodocus.org Git - nmh/commitdiff
Work around flex 2.6.3 bug by conditionally #undef yywrap.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 22 Mar 2017 10:51:34 +0000 (10:51 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 22 Mar 2017 10:53:48 +0000 (10:53 +0000)
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

index f1beb5c354e7bef6d6fe4184656ff6ae1bfb4213..05a6d90bc5cc855d97dbee69c49cd9d5a2a4a189 100644 (file)
   /* Since we're looking at a string at a time, don't worry about
    *  wrapping to the next buffer.
    */
   /* 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
 
 #define yywrap() 1
 #define YY_SKIP_YYWRAP