[AT_DATA_GRAMMAR([dancer.y],
[%{
static int yylex (AT_LALR1_CC_IF([int *], [void]));
-AT_LALR1_CC_IF([],
+AT_LALR1_CC_IF([#include <cstdlib>],
[#include <stdlib.h>
#include <stdio.h>
static void yyerror (const char *);])
[AT_DATA_GRAMMAR([expect2.y],
[%{
static int yylex (AT_LALR1_CC_IF([int *], [void]));
-AT_LALR1_CC_IF([],
+AT_LALR1_CC_IF([#include <cstdlib>],
[#include <stdio.h>
#include <stdlib.h>
static void yyerror (const char *);])
large enough to overflow size_t. */
#define YYSIZE_T unsigned char
- /* Bring in malloc so yacc.c doesn't try to provide a malloc prototype
- using our YYSIZE_T. */
+ /* Bring in malloc and set _STDLIB_H so yacc.c doesn't try to
+ provide a malloc prototype using our YYSIZE_T. */
#include <stdlib.h>
+ #ifndef _STDLIB_H
+ # define _STDLIB_H 1
+ #endif
/* Max depth is usually much smaller than YYSTACK_ALLOC_MAXIMUM, and
we don't want gcc to warn everywhere this constant would be too big