aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-11-12 11:23:06 -0800
committerGuy Harris <gharris@sonic.net>2021-11-12 11:23:06 -0800
commit2445180fa743e5d9453e21d3d5d0485497276cdb (patch)
treef72ef7649678df13d7f95a52c510dba2fec64945 /doc
parent2f98b349df0a9364723d3a2102d39a0d2cede94a (diff)
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/plugins.example/hello.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/plugins.example/hello.c b/doc/plugins.example/hello.c
index 49e6264ce4..d80265b258 100644
--- a/doc/plugins.example/hello.c
+++ b/doc/plugins.example/hello.c
@@ -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>