replace 'ifndef define' to 'pragam once'

This commit is contained in:
luwenpeng
2024-06-19 15:06:14 +08:00
parent c3fd452793
commit 48428e52fe
47 changed files with 47 additions and 188 deletions

View File

@@ -1,5 +1,4 @@
#ifndef _IP_REASSEMBLE_H
#define _IP_REASSEMBLE_H
#pragma once
#ifdef __cplusplus
extern "C"
@@ -65,5 +64,3 @@ struct packet *ipv6_reassembly_packet(struct ip_reassembly *assy, const struct p
#ifdef __cplusplus
}
#endif
#endif

View File

@@ -1,5 +1,4 @@
#ifndef _GTEST_UTILS_H
#define _GTEST_UTILS_H
#pragma once
#include <gtest/gtest.h>
@@ -82,5 +81,3 @@ static inline void check_stat(struct ip_reassembly_stat *stat,
#ifdef __cplusplus
}
#endif
#endif