From 098559ca3552ebd8f80a6d28254f4fa58913b751 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jul 2016 08:56:48 +0200 Subject: Add DLL export/import support --- butl/path.cxx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'butl/path.cxx') diff --git a/butl/path.cxx b/butl/path.cxx index 1693c86..46e36fd 100644 --- a/butl/path.cxx +++ b/butl/path.cxx @@ -28,6 +28,8 @@ #include #include +#include + #include #ifndef _WIN32 @@ -55,7 +57,7 @@ namespace butl // template <> - path_traits::string_type path_traits:: + LIBBUTL_EXPORT path_traits::string_type path_traits:: current () { // @@ throw system_error (and in the other current() versions). @@ -74,7 +76,7 @@ namespace butl } template <> - void path_traits:: + LIBBUTL_EXPORT void path_traits:: current (string_type const& s) { #ifdef _WIN32 @@ -140,7 +142,7 @@ namespace butl #endif template <> - path_traits::string_type path_traits:: + LIBBUTL_EXPORT path_traits::string_type path_traits:: temp_directory () { #ifdef _WIN32 @@ -162,7 +164,7 @@ namespace butl static atomic temp_name_count; template <> - path_traits::string_type path_traits:: + LIBBUTL_EXPORT path_traits::string_type path_traits:: temp_name (string_type const& prefix) { return prefix @@ -171,7 +173,7 @@ namespace butl } template <> - path_traits::string_type path_traits:: + LIBBUTL_EXPORT path_traits::string_type path_traits:: home () { #ifndef _WIN32 @@ -197,7 +199,7 @@ namespace butl #ifndef _WIN32 template <> - void path_traits:: + LIBBUTL_EXPORT void path_traits:: realize (string_type& s) { char r[PATH_MAX]; @@ -221,7 +223,7 @@ namespace butl // template <> - path_traits::string_type path_traits:: + LIBBUTL_EXPORT path_traits::string_type path_traits:: current () { #ifdef _WIN32 @@ -242,7 +244,7 @@ namespace butl } template <> - void path_traits:: + LIBBUTL_EXPORT void path_traits:: current (string_type const& s) { #ifdef _WIN32 @@ -262,7 +264,7 @@ namespace butl } template <> - path_traits::string_type path_traits:: + LIBBUTL_EXPORT path_traits::string_type path_traits:: temp_directory () { #ifdef _WIN32 @@ -295,7 +297,7 @@ namespace butl } template <> - path_traits::string_type path_traits:: + LIBBUTL_EXPORT path_traits::string_type path_traits:: temp_name (string_type const& prefix) { return prefix + @@ -304,7 +306,7 @@ namespace butl } template <> - path_traits::string_type path_traits:: + LIBBUTL_EXPORT path_traits::string_type path_traits:: home () { #ifndef _WIN32 @@ -339,7 +341,7 @@ namespace butl #ifndef _WIN32 template <> - void path_traits:: + LIBBUTL_EXPORT void path_traits:: realize (string_type&) { assert (false); // Implement if/when needed. -- cgit v1.1