diff options
author | Tobias Markmann <tm@ayena.de> | 2015-06-07 22:34:19 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2015-06-08 09:37:53 (GMT) |
commit | b6b0695643f932827add43b9de0e09ed74eb6799 (patch) | |
tree | 72456efba9fab6fbc6004a98f0a61b7a8167f791 /Swiften/Base | |
parent | 3741c9ad5c0cc6f92e4ed913d67b3b530882334e (diff) | |
download | swift-b6b0695643f932827add43b9de0e09ed74eb6799.zip swift-b6b0695643f932827add43b9de0e09ed74eb6799.tar.bz2 |
Add missing SWIFTEN_API annotations to public Swiften API
Test-Information:
Tested build on Windows 8 with VS 2014 and ran unit tests.
Change-Id: I3d8096df4801be6901f22564e36eecba0e7310c4
Diffstat (limited to 'Swiften/Base')
-rw-r--r-- | Swiften/Base/BoostRandomGenerator.h | 3 | ||||
-rw-r--r-- | Swiften/Base/SafeAllocator.h | 4 | ||||
-rw-r--r-- | Swiften/Base/SafeString.h | 5 |
3 files changed, 7 insertions, 5 deletions
diff --git a/Swiften/Base/BoostRandomGenerator.h b/Swiften/Base/BoostRandomGenerator.h index 60d56af..055c65f 100644 --- a/Swiften/Base/BoostRandomGenerator.h +++ b/Swiften/Base/BoostRandomGenerator.h @@ -8,11 +8,12 @@ #include <Swiften/Base/RandomGenerator.h> #include <Swiften/Base/Override.h> +#include <Swiften/Base/API.h> #include <boost/random/mersenne_twister.hpp> namespace Swift { - class BoostRandomGenerator : public RandomGenerator { + class SWIFTEN_API BoostRandomGenerator : public RandomGenerator { public: BoostRandomGenerator(); diff --git a/Swiften/Base/SafeAllocator.h b/Swiften/Base/SafeAllocator.h index d2e49b4..5f9ac70 100644 --- a/Swiften/Base/SafeAllocator.h +++ b/Swiften/Base/SafeAllocator.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2014 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -15,7 +15,7 @@ namespace Swift { void secureZeroMemory(char* memory, size_t numberOfBytes); template<typename T> - class SafeAllocator : public std::allocator<T> { + class SWIFTEN_API SafeAllocator : public std::allocator<T> { public: template <class U> struct rebind { typedef SafeAllocator<U> other; diff --git a/Swiften/Base/SafeString.h b/Swiften/Base/SafeString.h index a0f14e0..65d49d1 100644 --- a/Swiften/Base/SafeString.h +++ b/Swiften/Base/SafeString.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Isode Limited. + * Copyright (c) 2011-2015 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -7,9 +7,10 @@ #pragma once #include <Swiften/Base/SafeByteArray.h> +#include <Swiften/Base/API.h> namespace Swift { - class SafeString { + class SWIFTEN_API SafeString { public: SafeString(const SafeByteArray& data) : data(data) { } |