mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
cpp: simplify the Flex version checking macro
* src/flex-scanner,h (FLEX_VERSION): Consider YY_FLEX_SUBMINOR_VERSION defined.
This commit is contained in:
@@ -22,16 +22,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Flex full version as a number. */
|
/* Flex full version as a number. */
|
||||||
#ifdef YY_FLEX_SUBMINOR_VERSION
|
#define FLEX_VERSION \
|
||||||
# define FLEX_VERSION \
|
|
||||||
((YY_FLEX_MAJOR_VERSION) * 1000000 \
|
((YY_FLEX_MAJOR_VERSION) * 1000000 \
|
||||||
+ (YY_FLEX_MINOR_VERSION) * 1000 \
|
+ (YY_FLEX_MINOR_VERSION) * 1000 \
|
||||||
+ (YY_FLEX_SUBMINOR_VERSION))
|
+ (YY_FLEX_SUBMINOR_VERSION))
|
||||||
#else
|
|
||||||
# define FLEX_VERSION \
|
|
||||||
((YY_FLEX_MAJOR_VERSION) * 1000000 \
|
|
||||||
+ (YY_FLEX_MINOR_VERSION) * 1000)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Pacify "gcc -Wmissing-prototypes" when flex 2.5.31 is used. */
|
/* Pacify "gcc -Wmissing-prototypes" when flex 2.5.31 is used. */
|
||||||
# if FLEX_VERSION <= 2005031
|
# if FLEX_VERSION <= 2005031
|
||||||
|
|||||||
Reference in New Issue
Block a user