diff options
author | Vitaly Takmazov <vitalyster@gmail.com> | 2017-06-16 07:46:45 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2017-06-22 13:00:56 (GMT) |
commit | d46e946db8b25ddc34715e2e86c1e561f8381810 (patch) | |
tree | 4fa4dd2da2912847e59fc43b345ec194397f2ec5 | |
parent | b634796ad03d009ec9ef593f6a881a964e7f0d31 (diff) | |
download | swift-d46e946db8b25ddc34715e2e86c1e561f8381810.zip swift-d46e946db8b25ddc34715e2e86c1e561f8381810.tar.bz2 |
Add missing SWIFTEN_API declarations
License:
This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details.
Test-Information:
Tested performed under Windows 10 1703
Change-Id: I332923986c8d62b75a76ef9f784811d09a662f22
-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 } } |