projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert wrong commit. The problem with QVariant API needs to be analysed more deeply
[bertos.git]
/
bertos
/
algo
/
crc.h
diff --git
a/bertos/algo/crc.h
b/bertos/algo/crc.h
index 81a0c9265a2b6bb7996618a3566c5cde34ab3465..c2553dd563166b389e4e879aa74e90eea261b036 100644
(file)
--- a/
bertos/algo/crc.h
+++ b/
bertos/algo/crc.h
@@
-55,14
+55,10
@@
#include <cfg/compiler.h>
#include <cpu/pgm.h>
#include <cfg/compiler.h>
#include <cpu/pgm.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
+EXTERN_C_BEGIN
/* CRC table */
/* 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);
*/
extern uint16_t crc16(uint16_t crc, const void *buf, size_t len);
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+EXTERN_C_END
#endif /* ALGO_CRC_H */
#endif /* ALGO_CRC_H */