diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-09 13:15:18 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-09 13:15:18 +0100 |
commit | dc2e2b3e293a8374a2627982b521cc6865129c49 (patch) | |
tree | bd34d6c13e330be5937aec29503cbe6649d0fa74 /plugin.cpp | |
parent | d747193e76baf689211d9f1e42335360288d43c0 (diff) |
Separated out websocket
Diffstat (limited to 'plugin.cpp')
-rw-r--r-- | plugin.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -2,11 +2,6 @@ #include <boost/beast/version.hpp> -// Support both boost in Debian unstable (BOOST_LATEST) and in stable (boost 1.67) -#if BOOST_VERSION >= 107100 -#define BOOST_LATEST -#endif - #include <boost/dll/import.hpp> #include <boost/filesystem.hpp> @@ -29,11 +24,7 @@ void PluginLoader::load_plugins() for (auto& path: fs::recursive_directory_iterator(dir)) { if (path.is_regular_file() && path.path().extension() == ".so"s) { -#ifdef BOOST_LATEST dll::fs::path lib_path{path.path()}; -#else - boost::filesystem::path lib_path{path.path().generic_string()}; -#endif try { boost::shared_ptr<webserver_plugin_interface> plugin = dll::import<webserver_plugin_interface>(lib_path, "webserver_plugin", dll::load_mode::append_decorations); |