aboutsummaryrefslogtreecommitdiffstats
path: root/epan/crc16.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-01-18 18:43:30 +0000
committerGuy Harris <guy@alum.mit.edu>2007-01-18 18:43:30 +0000
commit0fb0fa8794861d6bb6beaa286252a5f834003182 (patch)
tree31dcc82b880094f7adc83befdcb58da4645cb757 /epan/crc16.h
parentcba9c4efa80764010810c602965ba768fb7d3206 (diff)
Put
#ifdef __cplusplus extern "C" { #endif /* __cplusplus */ ... #ifdef __cplusplus } #endif /* __cplusplus */ wrappers into some header files, for the benefit of C++ plugins. Also, add multiple-include protections. svn path=/trunk/; revision=20485
Diffstat (limited to 'epan/crc16.h')
-rw-r--r--epan/crc16.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/crc16.h b/epan/crc16.h
index 90ddedb5e8..e9aca01423 100644
--- a/epan/crc16.h
+++ b/epan/crc16.h
@@ -26,6 +26,13 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __CRC16_H_
+#define __CRC16_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Calculate the CCITT/ITU/CRC-16 16-bit CRC
(parameters for this CRC are:
@@ -95,4 +102,8 @@ extern guint16 crc16_ccitt_tvb_seed(tvbuff_t *tvb, guint len, guint16 seed);
extern guint16 crc16_ccitt_tvb_offset_seed(tvbuff_t *tvb, guint offset,
guint len, guint16 seed);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+#endif /* crc16.h */