summarylogtreecommitdiffstats
path: root/flex-version-check.patch
blob: d44c6071ef023f0c0f967df3dcdefd071cd92554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: scanner.l
===================================================================
--- scanner.l	(revision 675)
+++ scanner.l	(working copy)
@@ -328,7 +328,9 @@
 
 #ifdef FLEX_SCANNER
   yyrestart(in_file);
-#if (YY_FLEX_MAJOR_VERSION==2 && YY_FLEX_MINOR_VERSION==5 && YY_FLEX_SUBMINOR_VERSION>=33)
+#define YY_FLEX_VERSION \
+  (YY_FLEX_MAJOR_VERSION * 1000 + YY_FLEX_MINOR_VERSION * 100 + YY_FLEX_SUBMINOR_VERSION)
+#if YY_FLEX_VERSION >= 2533
   /* flex 2.5.33 flipped the polarity of this flag (sigh) */
   yy_init = 0;
 #else