Don't use HAVE_CONFIG_H in sample code in the documentation.

We require config.h and don't define HAVE_CONFIG_H - it should *always*
be included.
This commit is contained in:
Guy Harris 2021-11-12 11:23:06 -08:00
parent 2f98b349df
commit 2445180fa7
2 changed files with 2 additions and 5 deletions

View File

@ -7,9 +7,8 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define WS_BUILD_DLL
#include <wireshark.h>
#include <epan/packet.h>

View File

@ -876,9 +876,7 @@ Replace all PROTOCOL/protocol references with the name of your protocol.
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "config.h"
#include <glib.h>
#include <epan/packet.h>