mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Fix redefinition of typedefs
Per buildfarm members sifaka and longfin, clang with -Wtypedef-redefinition warns of duplicate typedefs unless building with C11. Follow-up to ee1b30f12. Masahiko Sawada Discussion: https://postgr.es/m/CANWCAZauSg%3DLUbBbXhpeQtBuPifmzQNTYS6O8NsoAPz1zL-Txg%40mail.gmail.com
This commit is contained in:
parent
ee1b30f128
commit
ac234e6377
@ -676,7 +676,7 @@ typedef struct RT_RADIX_TREE_CONTROL
|
||||
} RT_RADIX_TREE_CONTROL;
|
||||
|
||||
/* Entry point for allocating and accessing the tree */
|
||||
typedef struct RT_RADIX_TREE
|
||||
struct RT_RADIX_TREE
|
||||
{
|
||||
MemoryContext context;
|
||||
|
||||
@ -691,7 +691,7 @@ typedef struct RT_RADIX_TREE
|
||||
/* leaf_context is used only for single-value leaves */
|
||||
MemoryContextData *leaf_context;
|
||||
#endif
|
||||
} RT_RADIX_TREE;
|
||||
};
|
||||
|
||||
/*
|
||||
* Iteration support.
|
||||
@ -714,7 +714,7 @@ typedef struct RT_NODE_ITER
|
||||
} RT_NODE_ITER;
|
||||
|
||||
/* state for iterating over the whole radix tree */
|
||||
typedef struct RT_ITER
|
||||
struct RT_ITER
|
||||
{
|
||||
RT_RADIX_TREE *tree;
|
||||
|
||||
@ -728,7 +728,7 @@ typedef struct RT_ITER
|
||||
|
||||
/* The key constructed during iteration */
|
||||
uint64 key;
|
||||
} RT_ITER;
|
||||
};
|
||||
|
||||
|
||||
/* verification (available only in assert-enabled builds) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user