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/aftypes.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/aftypes.h')
-rw-r--r-- | epan/aftypes.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/epan/aftypes.h b/epan/aftypes.h index 5899671ff0..607355800d 100644 --- a/epan/aftypes.h +++ b/epan/aftypes.h @@ -24,6 +24,13 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef __AFTYPES_H__ +#define __AFTYPES_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + /* BSD AF_ values. */ #define BSD_AF_INET 2 #define BSD_AF_ISO 7 @@ -32,3 +39,9 @@ #define BSD_AF_INET6_BSD 24 /* OpenBSD (and probably NetBSD), BSD/OS */ #define BSD_AF_INET6_FREEBSD 28 #define BSD_AF_INET6_DARWIN 30 + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* aftypes.h */ |