mirror of
https://github.com/lammertb/libcrc.git
synced 2025-10-14 01:59:00 +08:00
Allow libcrc to be used with C++ (#20)
* Allow libcrc to be used with C++ * Ignore all objects
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -18,3 +18,4 @@ tstcrc.exe
|
||||
tstcrc
|
||||
bin/prc.exe
|
||||
bin/prc
|
||||
*.o
|
||||
|
@@ -37,6 +37,10 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* #define CRC_POLY_xxxx
|
||||
*
|
||||
@@ -105,4 +109,8 @@ uint16_t update_crc_sick( uint16_t crc, unsigned char c, unsigned char prev_
|
||||
extern const uint32_t crc_tab32[];
|
||||
extern const uint64_t crc_tab64[];
|
||||
|
||||
#ifdef __cplusplus
|
||||
}// Extern C
|
||||
#endif
|
||||
|
||||
#endif // DEF_LIBCRC_CHECKSUM_H
|
||||
|
Reference in New Issue
Block a user