]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/crc.h
Doc: Documented growing arrays, generic allocators and related things
[libucw.git] / ucw / crc.h
index a5134267cf1e5e0bffc18bca0eafc63f167e2328..a441283f35ad5e8c6050bbe9c05ae862ec05c192 100644 (file)
--- a/ucw/crc.h
+++ b/ucw/crc.h
  *     Adapted for LibUCW by Martin Mares <mj@ucw.cz> in 2012.
  */
 
+#ifndef _UCW_CRC_H
+#define _UCW_CRC_H
+
+#ifdef CONFIG_UCW_CLEAN_ABI
+#define crc32_hash_buffer ucw_crc32_hash_buffer
+#define crc32_init ucw_crc32_init
+#endif
+
 /**
  * Internal CRC calculator context.
  * You should use it just as an opaque handle only.
@@ -65,3 +73,5 @@ static inline u32 crc32_final(crc32_context *ctx)
  *  return crc32_final(&ctx);
  */
 u32 crc32_hash_buffer(const byte *buf, uns len);
+
+#endif