summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-06-05 07:13:30 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-06-05 07:13:30 -0700
commitc32afe5ce6c0c05e7fc978b321113228b4fa49f9 (patch)
tree343d90c03ed458cd6e34bbe6b6d2b587e1bb5ac6 /parser.l
parent3466d04fb72ff63998fb047e39796c9a2845519b (diff)
downloadtxr-c32afe5ce6c0c05e7fc978b321113228b4fa49f9.tar.gz
txr-c32afe5ce6c0c05e7fc978b321113228b4fa49f9.tar.bz2
txr-c32afe5ce6c0c05e7fc978b321113228b4fa49f9.zip
* parser.l (yylex_destroy): Only rely on the FLEX_ version
numbers if they are defined. In a newer flex, they are prefixed by YY_.
Diffstat (limited to 'parser.l')
-rw-r--r--parser.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser.l b/parser.l
index 1fa7ac38..a49e43d5 100644
--- a/parser.l
+++ b/parser.l
@@ -71,6 +71,7 @@ val form_to_ln_hash;
static val prepared_error_message;
+#ifdef FLEX_MAJOR_VERSION
#define FLEX_NUM_VERSION 1000*FLEX_MAJOR_VERSION + \
100*FLEX_MINOR_VERSION + \
FLEX_SUBMINOR_VERSION
@@ -81,6 +82,7 @@ int yylex_destroy(void)
return 0;
}
#endif
+#endif
void yyerror(const char *s)
{