修改__cplusplus->__cpluscplus

This commit is contained in:
luwenpeng
2023-04-28 17:45:13 +08:00
parent 7b55524b4f
commit e729c5cee9
8 changed files with 24 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
#ifndef _BPF_CONFIG_H_
#define _BPF_CONFIG_H_
#ifdef __cplusplus
#ifdef __cpluscplus
extern "C"
{
#endif
@@ -46,7 +46,7 @@ struct
__uint(max_entries, 16);
} bpf_config_map SEC(".maps");
#ifdef __cplusplus
#ifdef __cpluscplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _BPF_CONFIG_KERNEL_H_
#define _BPF_CONFIG_KERNEL_H_
#ifdef __cplusplus
#ifdef __cpluscplus
extern "C"
{
#endif
@@ -54,7 +54,7 @@ static inline __u32 bpf_config_get_queue_num(struct bpf_config *config)
return config->queue_num.val;
}
#ifdef __cplusplus
#ifdef __cpluscplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _BPF_CONFIG_USER_H_
#define _BPF_CONFIG_USER_H_
#ifdef __cplusplus
#ifdef __cpluscplus
extern "C"
{
#endif
@@ -65,7 +65,7 @@ static inline void bpf_config_set_queue_num(struct bpf_config *config, __u32 val
memcpy(config->queue_num.key.str, BPF_CONFIG_KEY_QUEUE_NUM, strlen(BPF_CONFIG_KEY_QUEUE_NUM));
}
#ifdef __cplusplus
#ifdef __cpluscplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _BPF_OBJ_H_
#define _BPF_OBJ_H_
#ifdef __cplusplus
#ifdef __cpluscplus
extern "C"
{
#endif
@@ -24,7 +24,7 @@ void bpf_obj_unload(struct bpf_obj_ctx *ctx);
*/
int bpf_obj_attach(struct bpf_obj_ctx *ctx, int fd);
#ifdef __cplusplus
#ifdef __cpluscplus
}
#endif

View File

@@ -1,7 +1,7 @@
#ifndef _CRC32_HASH_H_
#define _CRC32_HASH_H_
#ifdef __cplusplus
#ifdef __cpluscplus
extern "C"
{
#endif
@@ -350,7 +350,7 @@ static inline __u32 crc32_hash(const void *data, __u32 data_len, __u32 init_val)
return init_val;
}
#ifdef __cplusplus
#ifdef __cpluscplus
}
#endif