* data/yacc.c (malloc, free) [defined __cplusplus]: Wrap inside extern "C" {}.

This commit is contained in:
Paul Eggert
2005-06-09 20:44:28 +00:00
parent 43d3b66471
commit 0925ebb4fa
4 changed files with 23 additions and 5 deletions

View File

@@ -262,6 +262,9 @@ b4_syncline([@oline@], [@ofile@])[
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)
# endif
# ifdef __cplusplus
extern "C" {
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
# if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \
@@ -276,6 +279,9 @@ void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifdef __cplusplus
}
# endif
# endif
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */