Fixup ifdef check in Plugin.h

This commit is contained in:
Arne Welzel 2023-05-10 15:53:04 +02:00
parent 85934ec632
commit 8f45313672

View file

@ -13,8 +13,10 @@
// Avoid ccache busting of Plugin.h for internal plugins by // Avoid ccache busting of Plugin.h for internal plugins by
// only including zeek/zeek-version.h if we're building an // only including zeek/zeek-version.h if we're building an
// external plugin. // external plugin. The define gets set in the CMakeLists.txt file
#if defined(ZEEK_PLUGIN_INTERNAL_BUILD) && ! ZEEK_PLUGIN_INTERNAL_BUILD // for the Zeek::Internal target, which only exists when
// building Zeek itself.
#ifndef ZEEK_PLUGIN_SKIP_VERSION_CHECK
#include "zeek/zeek-version.h" #include "zeek/zeek-version.h"
// Remove the BRO define in v6.1. // Remove the BRO define in v6.1.
#define BRO_PLUGIN_BRO_VERSION ZEEK_VERSION_FUNCTION #define BRO_PLUGIN_BRO_VERSION ZEEK_VERSION_FUNCTION