diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-01-18 18:43:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-01-18 18:43:30 +0000 |
commit | 0fb0fa8794861d6bb6beaa286252a5f834003182 (patch) | |
tree | 31dcc82b880094f7adc83befdcb58da4645cb757 /epan/bitswap.h | |
parent | cba9c4efa80764010810c602965ba768fb7d3206 (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/bitswap.h')
-rw-r--r-- | epan/bitswap.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/epan/bitswap.h b/epan/bitswap.h index cc7efd4aa9..be018bfc42 100644 --- a/epan/bitswap.h +++ b/epan/bitswap.h @@ -4,10 +4,9 @@ * $Id$ * * Wireshark - Network traffic analyzer - * By Gerald Combs <gerald@zing.org> + * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * - * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 @@ -23,6 +22,19 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef __BITSWAP_H__ +#define __BITSWAP_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + extern guint8 swaptab[256]; #define BIT_SWAP(b) (swaptab[b]) + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* bitswap.h */ |