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 <gustavo@zacarias.com.ar>
12 lines
343 B
C
12 lines
343 B
C
#ifndef UL_NG_CRC32_H
|
|
#define UL_NG_CRC32_H
|
|
|
|
#include <sys/types.h>
|
|
#include <stdint.h>
|
|
|
|
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
|
|
|