mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: avoid c++ failure due to lack of getenv decl
* tests/c++.at (Syntax error as exception): Avoid spurious failure at least when compiling with g++-4.7.x due to lack of declaration of getenv. Include <stdlib.h>.
This commit is contained in:
@@ -461,6 +461,7 @@ AT_DATA_GRAMMAR([[input.yy]],
|
||||
|
||||
%code
|
||||
{
|
||||
#include <stdlib.h>
|
||||
int yylex (yy::parser::semantic_type *);
|
||||
}
|
||||
|
||||
@@ -510,7 +511,7 @@ yy::parser::error (const std::string &m)
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
main (void)
|
||||
{
|
||||
yy::parser parser;
|
||||
parser.set_debug_level(!!getenv("YYDEBUG"));
|
||||
|
||||
Reference in New Issue
Block a user