summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Encoding.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-19 12:02:06 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-19 12:02:06 (GMT)
commit697a5d64d86d73b1353a90a5bfc9f444b97fedd7 (patch)
tree9780e3e1266b0d5231d1904f45808214ae9be5ba /Source/kwsys/Encoding.hxx.in
parent3d3144bb023a98392594038973576cfbf046c039 (diff)
parent5785482ce0be9187ff94c1042f8978d2f11285e8 (diff)
downloadCMake-697a5d64d86d73b1353a90a5bfc9f444b97fedd7.zip
CMake-697a5d64d86d73b1353a90a5bfc9f444b97fedd7.tar.gz
CMake-697a5d64d86d73b1353a90a5bfc9f444b97fedd7.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2017-04-19 (9f6ffaff)
Diffstat (limited to 'Source/kwsys/Encoding.hxx.in')
-rw-r--r--Source/kwsys/Encoding.hxx.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/kwsys/Encoding.hxx.in b/Source/kwsys/Encoding.hxx.in
index bf93f50..09691fd 100644
--- a/Source/kwsys/Encoding.hxx.in
+++ b/Source/kwsys/Encoding.hxx.in
@@ -59,6 +59,17 @@ public:
static std::string ToNarrow(const std::wstring& str);
static std::string ToNarrow(const wchar_t* str);
+#if defined(_WIN32)
+ /**
+ * Convert the path to an extended length path to avoid MAX_PATH length
+ * limitations on Windows. If the input is a local path the result will be
+ * prefixed with \\?\; if the input is instead a network path, the result
+ * will be prefixed with \\?\UNC\. All output will also be converted to
+ * absolute paths with Windows-style backslashes.
+ **/
+ static std::wstring ToWindowsExtendedPath(std::string const&);
+#endif
+
#endif // @KWSYS_NAMESPACE@_STL_HAS_WSTRING
}; // class Encoding