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/crc32.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/crc32.h')
-rw-r--r-- | epan/crc32.h | 12 |
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 */ |