We're now a non-profit! Support open source packet analysis by making a donation.

Wireshark-dev: Re: [Wireshark-dev] mix of c and C++

From: Jeff Morriss <[email protected]>
Date: Wed, 27 Jul 2011 13:20:16 -0400
Stephen Fisher wrote:
On Tue, Jul 19, 2011 at 08:23:51AM +0200, Helge Kruse wrote:

@all: What is the sense behind the HAVE_CONFIG_H if I need it anyway?
config.h is only used on Unix, so only Unix builds need to include it.  
Things like HAVE_LIBPCAP are defined in there according to the configure 
script's results, which various Wireshark source files can use to 
include/exclude code specific to certain optional features such as 
libpcap or adns/libsmi/c-ares/etc.
Hmmm, Windows uses it too: the used version is built from the 
source-controlled "config.h.win32" file.