aboutsummaryrefslogtreecommitdiff
path: root/libbutl/path.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-09-22 23:32:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-09-22 23:32:28 +0200
commitc09cd7512491cee1e82c1ad8128ce9fd4bc3f79b (patch)
treea659ed768d849130ab5780a11b7f791a463a1a91 /libbutl/path.ixx
parent2a00871f07067f8f9e2de08bb9c8f50e1bf6a650 (diff)
Initial modularization with both Clang and VC hacks
Note: gave up on VC about half way though.
Diffstat (limited to 'libbutl/path.ixx')
-rw-r--r--libbutl/path.ixx28
1 files changed, 7 insertions, 21 deletions
diff --git a/libbutl/path.ixx b/libbutl/path.ixx
index 7227b72..f983f5d 100644
--- a/libbutl/path.ixx
+++ b/libbutl/path.ixx
@@ -2,39 +2,25 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : MIT; see accompanying LICENSE file
-#ifdef _WIN32
-# include <cwctype> // towlower(), towupper()
-#endif
-
-namespace butl
+LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason.
{
#ifdef _WIN32
template <>
+ LIBBUTL_SYMEXPORT //@@ MOD VC needs it for some reason.
inline char path_traits<char>::
tolower (char c)
{
- return lcase (c);
- }
-
- template <>
- inline wchar_t path_traits<wchar_t>::
- tolower (wchar_t c)
- {
- return std::towlower (c);
+ //@@ MOD VC-ICE return lcase (c);
+ return std::tolower (c);
}
template <>
+ LIBBUTL_SYMEXPORT //@@ MOD VC needs it for some reason.
inline char path_traits<char>::
toupper (char c)
{
- return ucase (c);
- }
-
- template <>
- inline wchar_t path_traits<wchar_t>::
- toupper (wchar_t c)
- {
- return std::towupper (c);
+ //@@ MOD VC-ICE return ucase (c);
+ return std::toupper (c);
}
#endif