aboutsummaryrefslogtreecommitdiffstats
path: root/epan/crc32.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/crc32.h')
-rw-r--r--epan/crc32.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/crc32.h b/epan/crc32.h
index 5396204263..b497b04290 100644
--- a/epan/crc32.h
+++ b/epan/crc32.h
@@ -24,6 +24,13 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __CRC32_H_
+#define __CRC32_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
extern const guint32 crc32_ccitt_table[256];
/** Compute CRC32 CCITT checksum of a buffer of data.
@@ -80,3 +87,8 @@ extern guint32 crc32_ccitt_tvb_offset_seed(tvbuff_t *tvb, guint offset,
@return The IEEE 802.x CRC32 checksum. */
extern guint32 crc32_802_tvb(tvbuff_t *tvb, guint len);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* crc32.h */