From 7f0d4d56a2f1ed34c3da4501e65fb79497b3dda1 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Mon, 10 Oct 2016 17:54:24 -0300 Subject: lib/crc32: prefix public functions Make the publicly-visible crc32 library functions prefixed by ul_, such as crc32() -> ul_crc32(). This is because it clashes with the crc32() function from zlib. For newer versions of glib (2.50+) zlib and libblkid are required dependencies and otherwise results in build failure when building statically. Signed-off-by: Gustavo Zacarias --- include/crc32.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/crc32.h') diff --git a/include/crc32.h b/include/crc32.h index ff2dd99d8..2551f50de 100644 --- a/include/crc32.h +++ b/include/crc32.h @@ -4,8 +4,8 @@ #include #include -extern uint32_t crc32(uint32_t seed, const unsigned char *buf, size_t len); -extern uint32_t crc32_exclude_offset(uint32_t seed, const unsigned char *buf, size_t len, +extern uint32_t ul_crc32(uint32_t seed, const unsigned char *buf, size_t len); +extern uint32_t ul_crc32_exclude_offset(uint32_t seed, const unsigned char *buf, size_t len, size_t exclude_off, size_t exclude_len); #endif -- cgit v1.2.3-55-g7522