remove __cplusplus guards in .c files
Change-Id: I052d930d54e63179b17b77f02c107a015f3cfc3f
This commit is contained in:
@@ -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
10
lib/libscrew/src/los_rbtree.c
Executable file → Normal 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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user