Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbf7427b

Browse files
committed
Minimal portability fix for commite1551f9.
Older gcc versions are not happy with having multiple declarationsfor the same typedef name (not struct name). I'm a bit dubiousas to how well-thought-out that patch was at all, but for the momentjust fix it enough so I can get some work done today.Discussion:https://postgr.es/m/20191218101338.GB325369@paquier.xyz
1 parentecb09cd commitbf7427b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎src/include/parser/parse_utilcmd.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717
#include"parser/parse_node.h"
1818

19-
typedefstructAttrMapAttrMap;
19+
structAttrMap;/* avoid including attmap.h here */
20+
2021

2122
externList*transformCreateStmt(CreateStmt*stmt,constchar*queryString);
2223
externList*transformAlterTableStmt(Oidrelid,AlterTableStmt*stmt,
@@ -30,7 +31,7 @@ extern PartitionBoundSpec *transformPartitionBound(ParseState *pstate, Relation
3031
PartitionBoundSpec*spec);
3132
externIndexStmt*generateClonedIndexStmt(RangeVar*heapRel,
3233
Relationsource_idx,
33-
constAttrMap*attmap,
34+
conststructAttrMap*attmap,
3435
Oid*constraintOid);
3536

3637
#endif/* PARSE_UTILCMD_H */

‎src/include/rewrite/rewriteManip.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616

1717
#include"nodes/parsenodes.h"
1818

19+
structAttrMap;/* avoid including attmap.h here */
20+
1921

20-
typedefstructAttrMapAttrMap;
2122
typedefstructreplace_rte_variables_contextreplace_rte_variables_context;
2223

2324
typedefNode*(*replace_rte_variables_callback) (Var*var,
@@ -72,7 +73,7 @@ extern Node *replace_rte_variables_mutator(Node *node,
7273

7374
externNode*map_variable_attnos(Node*node,
7475
inttarget_varno,intsublevels_up,
75-
constAttrMap*attno_map,
76+
conststructAttrMap*attno_map,
7677
Oidto_rowtype,bool*found_whole_row);
7778

7879
externNode*ReplaceVarsFromTargetList(Node*node,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp