From 3ecd851020cdbb8185d11843f4a9c2c313ade06b Mon Sep 17 00:00:00 2001 From: lottaviano Date: Thu, 6 Aug 2009 07:01:06 +0000 Subject: [PATCH] Fix subtle bug in crc table declaration; substitute extern_c macros. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2771 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/algo/crc.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/bertos/algo/crc.h b/bertos/algo/crc.h index 81a0c926..c2553dd5 100644 --- a/bertos/algo/crc.h +++ b/bertos/algo/crc.h @@ -55,14 +55,10 @@ #include #include - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - +EXTERN_C_BEGIN /* CRC table */ -const uint16_t crc16tab[256]; +extern const uint16_t crc16tab[256]; /** @@ -107,8 +103,6 @@ INLINE uint16_t updcrc16(uint8_t c, uint16_t oldcrc) */ extern uint16_t crc16(uint16_t crc, const void *buf, size_t len); -#ifdef __cplusplus -} -#endif /* __cplusplus */ +EXTERN_C_END #endif /* ALGO_CRC_H */ -- 2.25.1