fix compile error

This commit is contained in:
luwenpeng
2024-08-28 19:00:32 +08:00
parent 3e6b837318
commit 283d591e6b
24 changed files with 159 additions and 113 deletions

View File

@@ -2,6 +2,11 @@
#ifndef _LINUX_INTERVAL_TREE_H
#define _LINUX_INTERVAL_TREE_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "rbtree.h"
#include <stdint.h>
@@ -30,4 +35,8 @@ extern struct interval_tree_node *
interval_tree_iter_next(struct interval_tree_node *node,
uint64_t start, uint64_t last);
#ifdef __cplusplus
}
#endif
#endif /* _LINUX_INTERVAL_TREE_H */

View File

@@ -7,6 +7,11 @@
include/linux/interval_tree_generic.h
*/
#ifdef __cplusplus
extern "C"
{
#endif
#include "rbtree_augmented.h"
/*
@@ -195,3 +200,7 @@
return node; \
} \
}
#ifdef __cplusplus
}
#endif