From d794d164163def46a226110c5e04f47596485493 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 11 Jan 2025 12:36:32 +0000 Subject: Adjust to new boost API --- plugin.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugin.cpp b/plugin.cpp index 68861a8..e5af015 100644 --- a/plugin.cpp +++ b/plugin.cpp @@ -1,7 +1,7 @@ #include "plugin.h" #include - +#include #include #include @@ -27,7 +27,13 @@ void PluginLoader::load_plugins() dll::fs::path lib_path{path.path()}; try { - boost::shared_ptr plugin = dll::import(lib_path, "webserver_plugin", dll::load_mode::append_decorations); + boost::shared_ptr plugin = dll:: +#if BOOST_VERSION >= 17600 + import_symbol +#else + import +#endif + (lib_path, "webserver_plugin", dll::load_mode::append_decorations); if (plugin) { if (plugin->version() != webserver_plugin_interface::interface_version) throw std::runtime_error("Bad interface version for "s + path.path().generic_string() + ": "s + std::to_string(plugin->version()) + " vs. "s + std::to_string(webserver_plugin_interface::interface_version)); -- cgit v1.2.3