diff options
author | lloyd <[email protected]> | 2015-03-11 12:05:06 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-03-11 12:05:06 +0000 |
commit | 1bf1490726d859596ac95c78c9a7763b8d420b2d (patch) | |
tree | 91b6126ca7f9491e997b340ea8ce0c8f96f8671a /src/lib/base/init.h | |
parent | 28e5dd404b5d4e3f5eec1a64a198c8f301636e23 (diff) |
Add BOTAN_DLL back to LibraryInitializer and move some of the implementation to
a source file. Without BOTAN_DLL the LibraryInitializer was removed entirely
from the list of symbols which is not desired.
Add some casts to avoid scary sounding but (upon review) harmless warnings from MSVC
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(); }; } |