diff options
author | László Németh <nemeth@numbertext.org> | 2014-07-15 14:11:34 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2014-07-15 14:25:58 +0200 |
commit | ea9331fd4955fe6fad0957ee6240275148353e32 (patch) | |
tree | d9c6686f39eea3f7ffa99922ba326c36da8b847e /lingucomponent/source/lingutil/lingutil.cxx | |
parent | Related: fdo#80633 we can retain cached size for visibility change (diff) | |
download | core-ea9331fd4955fe6fad0957ee6240275148353e32.tar.gz core-ea9331fd4955fe6fad0957ee6240275148353e32.zip |
fdo#80363 always use WIN32 long path prefix with Hunspell, MyThes, Hyphen
Change-Id: I738401babffd38c241ef16e23d1b246444fd8d55
Diffstat (limited to 'lingucomponent/source/lingutil/lingutil.cxx')
-rw-r--r-- | lingucomponent/source/lingutil/lingutil.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx index 769a023c9096..c384a5beca0b 100644 --- a/lingucomponent/source/lingutil/lingutil.cxx +++ b/lingucomponent/source/lingutil/lingutil.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#if defined(WNT) +#include <windows.h> +#endif + #include <osl/thread.h> #include <osl/file.hxx> #include <tools/debug.hxx> @@ -41,6 +45,15 @@ using ::com::sun::star::lang::Locale; using namespace ::com::sun::star; +#if defined(WNT) +OString Win_AddLongPathPrefix( const OString &rPathName ) +{ +#define WIN32_LONG_PATH_PREFIX "\\\\?\\" + if (!rPathName.match(WIN32_LONG_PATH_PREFIX)) return WIN32_LONG_PATH_PREFIX + rPathName; + return rPathName; +} +#endif //defined(WNT) + // build list of old style diuctionaries (not as extensions) to use. // User installed dictionaries (the ones residing in the user paths) // will get precedence over system installed ones for the same language. |