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:
Willy Tarreau 2017-11-20 21:11:12 +01:00
parent 2532bd2f81
commit 0cb98b2451
1 changed files with 2 additions and 0 deletions

View File

@ -28,8 +28,10 @@
#define eb32sc_entry(ptr, type, member) container_of(ptr, type, member)
/* These types may sometimes already be defined */
#ifndef _EB32TREE_H
typedef unsigned int u32;
typedef signed int s32;
#endif
/* 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