ebtree did not support being included multiple times.
and likely/unlikely which are used in ebtree are also used and defined
in haproxy. Thus, we just conditionally define them.
+Last, all eb*tree*.h have been adapted to support being included multiple
+times, using #ifndef/#define/#endif.
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef _COMMON_EB32TREE_H
+#define _COMMON_EB32TREE_H
+
#include "ebtree.h"
return new;
}
+
+#endif /* _COMMON_EB32TREE_H */
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef _COMMON_EB64TREE_H
+#define _COMMON_EB64TREE_H
+
#include "ebtree.h"
return new;
}
+#endif /* _COMMON_EB64TREE_H */
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef _COMMON_EBPTTREE_H
+#define _COMMON_EBPTTREE_H
+
#include "ebtree.h"
return new;
}
+#endif /* _COMMON_EBPTTREE_H */
*/
+#ifndef _COMMON_EBTREE_H
+#define _COMMON_EBTREE_H
#include <stdlib.h>
void eb_delete(struct eb_node *node);
REGPRM1 struct eb_node *eb_insert_dup(struct eb_node *sub, struct eb_node *new);
+#endif /* _COMMON_EBTREE_H */
/*
* Local variables: