From b3e5743691564a6576844f6a92428e9b02d88602 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Sun, 3 Oct 2010 15:40:53 +0000 Subject: [PATCH] add c decl stuff to crc32.h --- stasis/crc32.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stasis/crc32.h b/stasis/crc32.h index 5613279..533c695 100644 --- a/stasis/crc32.h +++ b/stasis/crc32.h @@ -1,5 +1,6 @@ #ifndef STASIS_CRC32_H #define STASIS_CRC32_H + /* This CRC code was taken from: http://www.axlradius.com/freestuff/crc2.c (It is presumably in the public domain. Other files under /freestuff/ are...) @@ -16,5 +17,10 @@ crc = crc32(buffer, length, crc) */ #include + +BEGIN_C_DECLS + uint32_t stasis_crc32(const void *buffer, unsigned int count, uint32_t crc); + +END_C_DECLS #endif // STASIS_CRC32_H