Wireshark mailing list archives
Re: mix of c and C++
From: Guy Harris <guy () alum mit edu>
Date: Wed, 27 Jul 2011 10:25:17 -0700
On Jul 27, 2011, at 10:20 AM, Jeff Morriss wrote:
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.
I think he's asking about HAVE_CONFIG_H, not config.h, the question being "if Wireshark won't build correctly without the stuff config.h defines, what's the point in checking whether we have config.h with "#ifdef HAVE_CONFIG_H"?" I.e., why not just do #include "config.h" rather than #ifdef HAVE_CONFIG_H #include "config.h" #endif ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Re: mix of c and C++, (continued)
- Re: mix of c and C++ Helge Kruse (Jul 18)
- Re: mix of c and C++ sagar sg (Jul 18)
- Re: mix of c and C++ Helge Kruse (Jul 18)
- Re: mix of c and C++ sagar Guledagudda (Jul 18)
- Re: mix of c and C++ Helge Kruse (Jul 18)
- Re: mix of c and C++ sagar Guledagudda (Jul 19)
- Re: mix of c and C++ sagar Guledagudda (Jul 19)
- Re: mix of c and C++ Helge Kruse (Jul 19)
- Re: mix of c and C++ Stephen Fisher (Jul 27)
- Re: mix of c and C++ Jeff Morriss (Jul 27)
- Re: mix of c and C++ Guy Harris (Jul 27)
- Re: mix of c and C++ Jeff Morriss (Jul 27)
- Re: mix of c and C++ sagar sg (Jul 18)
- Re: mix of c and C++ Helge Kruse (Jul 18)
- Re: mix of c and C++ Helge Kruse (Jul 27)