diff options
| author | 2020-11-04 13:31:03 +0000 | |
|---|---|---|
| committer | 2020-11-04 13:37:14 +0000 | |
| commit | 2310b03ad503a2712f868d52ce37ec6a3943e261 (patch) | |
| tree | f1fde6b7045d0c545f87809bc2afb3f596f23e4c /src/dynamic.cpp | |
| parent | Move config typedefs to ServerConfig and use auto in more places. (diff) | |
Initial support for platform-specific module file extensions.
Diffstat (limited to 'src/dynamic.cpp')
| -rw-r--r-- | src/dynamic.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dynamic.cpp b/src/dynamic.cpp index 42751c7de..a67c50d77 100644 --- a/src/dynamic.cpp +++ b/src/dynamic.cpp @@ -31,13 +31,10 @@ # include <dlfcn.h> #endif -/** The extension that dynamic libraries end with. */ -#define DLL_EXTENSION ".so" - DLLManager::DLLManager(const std::string& name) : libname(name) { - static size_t extlen = strlen(DLL_EXTENSION); + const static size_t extlen = strlen(DLL_EXTENSION); if (name.length() <= extlen || name.compare(name.length() - extlen, name.length(), DLL_EXTENSION)) { err.assign(name + " is not a module (no " DLL_EXTENSION " extension)"); |
