summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crc32c.c2
-rw-r--r--crc32c.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/crc32c.c b/crc32c.c
index a4296a7..a3c526e 100644
--- a/crc32c.c
+++ b/crc32c.c
@@ -46,6 +46,8 @@
#endif
#include "crc32c.h"
+crc_func crc32c;
+
/* CRC-32C (iSCSI) polynomial in reversed bit order. */
#define POLY 0x82f63b78
diff --git a/crc32c.h b/crc32c.h
index 8b030de..c09cb42 100644
--- a/crc32c.h
+++ b/crc32c.h
@@ -2,7 +2,7 @@
#define CRC32C_H
typedef uint32_t (*crc_func)(uint32_t crc, const void *buf, size_t len);
-crc_func crc32c;
+extern crc_func crc32c;
void crc32c_init(void);