Allow libcrc to be used with C++ (#20)

* Allow libcrc to be used with C++

* Ignore all objects
This commit is contained in:
Dagan Martinez
2021-02-11 09:51:25 -06:00
committed by GitHub
parent fde4cb1da7
commit a12d100f48
2 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@@ -18,3 +18,4 @@ tstcrc.exe
tstcrc
bin/prc.exe
bin/prc
*.o

View File

@@ -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