From a29c0127fa1285a495145837641daa0b7d75829b Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Sat, 11 Jul 2015 12:48:42 -0700 Subject: [PATCH] libsparse: Wrap sparse_crc32.h to be C++ compatible. Change-Id: Ic6b1721859937984619a262c459f1f734d81c149 --- libsparse/sparse_crc32.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libsparse/sparse_crc32.h b/libsparse/sparse_crc32.h index cad8a8630..50cd9e989 100644 --- a/libsparse/sparse_crc32.h +++ b/libsparse/sparse_crc32.h @@ -14,7 +14,19 @@ * limitations under the License. */ +#ifndef _LIBSPARSE_SPARSE_CRC32_H_ +#define _LIBSPARSE_SPARSE_CRC32_H_ + #include +#ifdef __cplusplus +extern "C" { +#endif + uint32_t sparse_crc32(uint32_t crc, const void *buf, size_t size); +#ifdef __cplusplus +} +#endif + +#endif