mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
Allow redeclaration of typedef yyscan_t
This is allowed in C11, so we don't need the workaround guards against
it anymore. This effectively reverts commit 382092a0cd
that put
these guards in place.
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/10d32190-f31b-40a5-b177-11db55597355@eisentraut.org
This commit is contained in:
@@ -16,10 +16,7 @@ extern int significant_digits(const char *s);
|
||||
|
||||
/* for segscan.l and segparse.y */
|
||||
union YYSTYPE;
|
||||
#ifndef YY_TYPEDEF_YY_SCANNER_T
|
||||
#define YY_TYPEDEF_YY_SCANNER_T
|
||||
typedef void *yyscan_t;
|
||||
#endif
|
||||
|
||||
/* in segscan.l */
|
||||
extern int seg_yylex(union YYSTYPE *yylval_param, yyscan_t yyscanner);
|
||||
|
Reference in New Issue
Block a user