(YYOPTIONAL_LOC): Define even if it's not a recent

version of GCC, since the macro is used with non-GCC compilers.
This commit is contained in:
Paul Eggert
2005-07-25 04:20:39 +00:00
parent e0045d49b6
commit 3bc00d6c4b

View File

@@ -261,19 +261,19 @@ b4_syncline([@oline@], [@ofile@])
#ifndef __attribute__
/* This feature is available in gcc versions 2.5 and later. */
# if !defined (__GNUC__) || __GNUC__ < 2 || \
(__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
# if (!defined (__GNUC__) || __GNUC__ < 2 \
|| (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__)
# define __attribute__(Spec) /* empty */
# else
]b4_location_if([# define YYOPTIONAL_LOC(Name) Name],[
# if defined (__cplusplus)
# define YYOPTIONAL_LOC(Name) /* empty */
# else
# define YYOPTIONAL_LOC(Name) Name __attribute__ ((__unused__))
# endif])[
# endif
#endif
]b4_location_if([#define YYOPTIONAL_LOC(Name) Name],[
#ifdef __cplusplus
# define YYOPTIONAL_LOC(Name) /* empty */
#else
# define YYOPTIONAL_LOC(Name) Name __attribute__ ((__unused__))
#endif])[
#ifndef YYASSERT
# define YYASSERT(condition) ((void) ((condition) || (abort (), 0)))
#endif