diff options
-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) { |