From 47af59f09c89692dc11562d4b1a840c187b4cf82 Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Tue, 25 Mar 2014 22:03:27 -0500 Subject: [PATCH] Add dll tag to Binary --- include/yaml-cpp/binary.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/yaml-cpp/binary.h b/include/yaml-cpp/binary.h index 7a503d9..d236a0c 100644 --- a/include/yaml-cpp/binary.h +++ b/include/yaml-cpp/binary.h @@ -10,11 +10,14 @@ #include #include -namespace YAML { -std::string EncodeBase64(const unsigned char *data, std::size_t size); -std::vector DecodeBase64(const std::string &input); +#include "yaml-cpp/dll.h" -class Binary { +namespace YAML { +YAML_CPP_API std::string EncodeBase64(const unsigned char *data, + std::size_t size); +YAML_CPP_API std::vector DecodeBase64(const std::string &input); + +class YAML_CPP_API Binary { public: Binary() : m_unownedData(0), m_unownedSize(0) {} Binary(const unsigned char *data_, std::size_t size_)