diff options
Diffstat (limited to 'src/lib/base/init.h')
-rw-r--r-- | src/lib/base/init.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/base/init.h b/src/lib/base/init.h index dce564b46..b73355628 100644 --- a/src/lib/base/init.h +++ b/src/lib/base/init.h @@ -19,13 +19,14 @@ namespace Botan { * case, and this class is no longer needed and kept only for backwards * compatability. */ -class LibraryInitializer +class BOTAN_DLL LibraryInitializer { public: - LibraryInitializer(const std::string& = "") {} - ~LibraryInitializer() {} - static void initialize(const std::string& = "") {} - static void deinitialize() {} + LibraryInitializer(const std::string& s = "") { initialize(s); } + ~LibraryInitializer() { deinitialize(); } + + static void initialize(const std::string& = ""); + static void deinitialize(); }; } |