mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
BUILD: ebtree: don't redefine types u32/s32 in scope-aware trees
Clang emits a warning about these types being redefined in eb32sctree while they are already defined in eb32tree. Let's simply not redefine them if eb32tree was already included.
This commit is contained in:
parent
2532bd2f81
commit
0cb98b2451
@ -28,8 +28,10 @@
|
|||||||
#define eb32sc_entry(ptr, type, member) container_of(ptr, type, member)
|
#define eb32sc_entry(ptr, type, member) container_of(ptr, type, member)
|
||||||
|
|
||||||
/* These types may sometimes already be defined */
|
/* These types may sometimes already be defined */
|
||||||
|
#ifndef _EB32TREE_H
|
||||||
typedef unsigned int u32;
|
typedef unsigned int u32;
|
||||||
typedef signed int s32;
|
typedef signed int s32;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This structure carries a node, a leaf, a scope, and a key. It must start
|
/* This structure carries a node, a leaf, a scope, and a key. It must start
|
||||||
* with the eb_node so that it can be cast into an eb_node. We could also
|
* with the eb_node so that it can be cast into an eb_node. We could also
|
||||||
|
Loading…
Reference in New Issue
Block a user