From: Akim Demaille Date: Tue, 15 May 2012 09:22:34 +0000 (+0200) Subject: build: do not prototype flex-generated functions. X-Git-Tag: v2.5.1_rc2~9 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/86b08b49b3b1b9fc27a3c64d8421a6f30c12d942?hp=86b08b49b3b1b9fc27a3c64d8421a6f30c12d942 build: do not prototype flex-generated functions. Some versions of Flex, possibly modified by the distribution package maintainers, have incompatible signatures. Since newer versions of Flex prototype their functions, avoid the conflicts in that case. Reported by Stefano Lattarini. . * src/flex-scanner.h (FLEX_VERSION_GT): New. Use it to issue prototypes for flex-generated functions only for versions up to 2.5.31, in accordance with the comment. See commit dc9701e848f27ae64b6ddcf809580998667d60f2. Use it to define yylex_destroy when needed. ---