remove __cplusplus guards in .c files

Change-Id: I052d930d54e63179b17b77f02c107a015f3cfc3f
This commit is contained in:
Caoruihong
2021-04-19 18:09:37 +08:00
parent 2da9dfe67f
commit 7e73c929a2
374 changed files with 0 additions and 1065 deletions

View File

@@ -31,11 +31,6 @@
#include "los_crc32.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#define COUNT1 val = crc32_tab[(val ^ (*src++)) & 0xff] ^ (val >> 8)
#define COUNT2 COUNT1; COUNT1
@@ -75,8 +70,3 @@ UINT32 LOS_Crc32Accumulate(UINT32 val, UINT8 *src, INT32 len)
return val;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */

10
lib/libscrew/src/los_rbtree.c Executable file → Normal file
View File

@@ -37,11 +37,6 @@
#include "los_rbtree.h"
#include "los_memory.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
STATIC VOID OsRbLeftRotateNode(LosRbTree *pstTree, LosRbNode *pstX);
STATIC VOID OsRbRightRotateNode(LosRbTree *pstTree, LosRbNode *pstY);
@@ -764,9 +759,4 @@ ULONG_T LOS_RbAddNode(LosRbTree *pstTree, LosRbNode *pstNew)
return TRUE;
}
#ifdef __cplusplus
#if __cplusplus
}
#endif /* __cplusplus */
#endif /* __cplusplus */