From ae5f228df3dd473baa7eb49e36dda64e9e3b823e Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 1 Apr 2003 09:26:15 +0000
Subject: [PATCH] Fixed prototype for C++ compatibility.

---
 src/hash/crc32.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/hash/crc32.h b/src/hash/crc32.h
index e15fa08246..634c401a6b 100644
--- a/src/hash/crc32.h
+++ b/src/hash/crc32.h
@@ -8,7 +8,7 @@
  * @format.tab-size 4		(Plain Text/Source Code File Header)			*
  * @format.use-tabs true	(see http://www.synchro.net/ptsc_hdr.html)		*
  *																			*
- * Copyright 2000 Rob Swindell - http://www.synchro.net/copyright.html		*
+ * Copyright 2003 Rob Swindell - http://www.synchro.net/copyright.html		*
  *																			*
  * This program is free software; you can redistribute it and/or			*
  * modify it under the terms of the GNU General Public License				*
@@ -42,6 +42,9 @@ extern long crc32tbl[];
 
 #define ucrc32(ch,crc) (crc32tbl[(crc^ch)&0xff]^(crc>>8))
 
+#ifdef __cplusplus
+extern "C"
+#endif
 unsigned long crc32(char *buf, unsigned long len);
 
 #endif
-- 
GitLab