diff options
-rw-r--r-- | Swiften/Base/Debug.h | 6 | ||||
-rw-r--r-- | Swiften/Base/SafeAllocator.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Base/Debug.h b/Swiften/Base/Debug.h index 9dde74c..a6d000f 100644 --- a/Swiften/Base/Debug.h +++ b/Swiften/Base/Debug.h @@ -1,26 +1,26 @@ /* * Copyright (c) 2015-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include <iosfwd> #include <Swiften/Client/ClientSession.h> namespace Swift { class ClientError; class Element; } namespace boost { template<class T> class shared_ptr; } -std::ostream& operator<<(std::ostream& os, const Swift::ClientError& error); +SWIFTEN_API std::ostream& operator<<(std::ostream& os, const Swift::ClientError& error); -std::ostream& operator<<(std::ostream& os, Swift::Element* ele); +SWIFTEN_API std::ostream& operator<<(std::ostream& os, Swift::Element* ele); -std::ostream& operator<<(std::ostream& os, Swift::ClientSession::State state); +SWIFTEN_API std::ostream& operator<<(std::ostream& os, Swift::ClientSession::State state); diff --git a/Swiften/Base/SafeAllocator.cpp b/Swiften/Base/SafeAllocator.cpp index 446ed2d..df51e20 100644 --- a/Swiften/Base/SafeAllocator.cpp +++ b/Swiften/Base/SafeAllocator.cpp @@ -1,27 +1,27 @@ /* * Copyright (c) 2013 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #include <Swiften/Base/SafeByteArray.h> #include <Swiften/Base/Platform.h> #ifdef SWIFTEN_PLATFORM_WINDOWS #include <windows.h> #endif namespace Swift { -void secureZeroMemory(char* memory, size_t numberOfBytes) { +SWIFTEN_API void secureZeroMemory(char* memory, size_t numberOfBytes) { #ifdef SWIFTEN_PLATFORM_WINDOWS SecureZeroMemory(memory, numberOfBytes); #else volatile char* p = memory; for (size_t i = 0; i < numberOfBytes; ++i) { *(p++) = 0; } #endif } } |