diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-01-18 18:43:30 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-01-18 18:43:30 +0000 |
commit | d3db87e9b74aae837aa3094aedd9c69939778e82 (patch) | |
tree | 31dcc82b880094f7adc83befdcb58da4645cb757 /epan/crc16.h | |
parent | ead927552ff233ba0463f9a7aa8dc79db9002c5b (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20485 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/crc16.h')
-rw-r--r-- | epan/crc16.h | 11 |
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 */ |