diff options
author | guy <guy> | 2000-07-29 07:36:41 +0000 |
---|---|---|
committer | guy <guy> | 2000-07-29 07:36:41 +0000 |
commit | 84f822f4d81584af867b7d74d9169ce70a04501c (patch) | |
tree | 568aea2234aa900bd0635369a6052cba3d05c6c5 /pcap.h | |
parent | 84f2cb311c405c69bcac44f3a514554d3b682df3 (diff) |
Pick up, from the FreeBSD libpcap, changes to surround all declarations with
#ifdef __cplusplus
extern "C" {
#endif
...
#ifdef __cplusplus
}
#endif
so that C++ code can include these header files and correctly call the
C-language routines they declare.
Diffstat (limited to 'pcap.h')
-rw-r--r-- | pcap.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.23 2000-06-26 04:57:11 assar Exp $ (LBL) + * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.24 2000-07-29 07:36:43 guy Exp $ (LBL) */ #ifndef lib_pcap_h @@ -43,6 +43,10 @@ #include <stdio.h> +#ifdef __cplusplus +extern "C" { +#endif + #define PCAP_VERSION_MAJOR 2 #define PCAP_VERSION_MINOR 4 @@ -139,4 +143,9 @@ u_int bpf_filter(struct bpf_insn *, u_char *, u_int, u_int); int bpf_validate(struct bpf_insn *f, int len); char *bpf_image(struct bpf_insn *, int); void bpf_dump(struct bpf_program *, int); + +#ifdef __cplusplus +} +#endif + #endif |