summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Base')
-rw-r--r--Swiften/Base/BoostRandomGenerator.h3
-rw-r--r--Swiften/Base/SafeAllocator.h4
-rw-r--r--Swiften/Base/SafeString.h5
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) {
}