diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-05-14 02:47:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-05-14 02:47:13 +0000 |
commit | e36628d2aab64145cd466b260943cabd5f550ad8 (patch) | |
tree | 95b4ba34a75a07637de459e86bc88b671fe9e356 /capture_errs.h | |
parent | 8d56103f48aeb75e3a9be453eb15e03ece652890 (diff) | |
download | wireshark-e36628d2aab64145cd466b260943cabd5f550ad8.tar.gz wireshark-e36628d2aab64145cd466b260943cabd5f550ad8.tar.bz2 wireshark-e36628d2aab64145cd466b260943cabd5f550ad8.zip |
If something is only supposed to be included if we have libpcap, don't
put #ifdef HAVE_LIBPCAP in it.
Add multiple-inclusion protection to capture_errs.h.
svn path=/trunk/; revision=32803
Diffstat (limited to 'capture_errs.h')
-rw-r--r-- | capture_errs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/capture_errs.h b/capture_errs.h index 80c4c2c5aa..a9f2f51dde 100644 --- a/capture_errs.h +++ b/capture_errs.h @@ -23,7 +23,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifdef HAVE_LIBPCAP +#ifndef __CAPTURE_ERRS_H__ +#define __CAPTURE_ERRS_H__ #ifdef _WIN32 /* error message, if WinPcap couldn't be loaded */ @@ -31,4 +32,4 @@ extern char *cant_load_winpcap_err(const char *app_name); #endif /* _WIN32 */ -#endif /* HAVE_LIBPCAP */ +#endif /* __CAPTURE_ERRS_H__ */ |