diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-06-05 07:13:30 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-06-05 07:13:30 -0700 |
commit | c32afe5ce6c0c05e7fc978b321113228b4fa49f9 (patch) | |
tree | 343d90c03ed458cd6e34bbe6b6d2b587e1bb5ac6 | |
parent | 3466d04fb72ff63998fb047e39796c9a2845519b (diff) | |
download | txr-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_.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | parser.l | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2014-06-05 Kaz Kylheku <kaz@kylheku.com> + * parser.l (yylex_destroy): Only rely on the FLEX_ version + numbers if they are defined. In a newer flex, they are prefixed + by YY_. + +2014-06-05 Kaz Kylheku <kaz@kylheku.com> + * configure (lang_flags): Removing -D_BSD_SOURCE from lang_flags. Adding a test for determining which flag reveals BSD functions. This is due to the @@ -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) { |