diff options
Diffstat (limited to 'helpcompiler')
-rw-r--r-- | helpcompiler/inc/HelpCompiler.hxx | 2 | ||||
-rw-r--r-- | helpcompiler/source/HelpCompiler.cxx | 2 | ||||
-rw-r--r-- | helpcompiler/source/HelpLinker.cxx | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/helpcompiler/inc/HelpCompiler.hxx b/helpcompiler/inc/HelpCompiler.hxx index b3e325165dbd..78f98a2821e1 100644 --- a/helpcompiler/inc/HelpCompiler.hxx +++ b/helpcompiler/inc/HelpCompiler.hxx @@ -87,7 +87,7 @@ namespace fs HCDBG(std::cerr << "native_file_string is " << tmp.getStr() << std::endl); return std::string(tmp.getStr()); } -#ifdef WNT +#ifdef _WIN32 wchar_t const * native_file_string_w() const { OUString ustrSystemPath; diff --git a/helpcompiler/source/HelpCompiler.cxx b/helpcompiler/source/HelpCompiler.cxx index 276394a6e0aa..2a127fe2bb44 100644 --- a/helpcompiler/source/HelpCompiler.cxx +++ b/helpcompiler/source/HelpCompiler.cxx @@ -87,7 +87,7 @@ xmlDocPtr HelpCompiler::compactXhpForJar( xmlDocPtr doc ) void HelpCompiler::saveXhpForJar( xmlDocPtr doc, const fs::path &filePath ) { //save processed xhp document in ziptmp<module>_<lang>/text directory -#ifdef WNT +#ifdef _WIN32 std::string pathSep = "\\"; #else std::string pathSep = "/"; diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index 626357dc5e70..95821f172a4b 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -87,7 +87,7 @@ void IndexerPreProcessor::processDocument if( pResNodeCaption ) { fs::path fsCaptionPureTextFile_docURL = m_fsCaptionFilesDirName / aStdStr_EncodedDocPathURL; -#ifdef WNT //We need _wfopen to support long file paths on Windows XP +#ifdef _WIN32 //We need _wfopen to support long file paths on Windows XP FILE* pFile_docURL = _wfopen( fsCaptionPureTextFile_docURL.native_file_string_w(), L"w" ); #else @@ -110,7 +110,7 @@ void IndexerPreProcessor::processDocument if( pResNodeContent ) { fs::path fsContentPureTextFile_docURL = m_fsContentFilesDirName / aStdStr_EncodedDocPathURL; -#ifdef WNT //We need _wfopen to support long file paths on Windows XP +#ifdef _WIN32 //We need _wfopen to support long file paths on Windows XP FILE* pFile_docURL = _wfopen( fsContentPureTextFile_docURL.native_file_string_w(), L"w" ); #else @@ -186,7 +186,7 @@ public: void dump_DBHelp( const fs::path& rFileName ) { -#ifdef WNT //We need _wfopen to support long file paths on Windows XP +#ifdef _WIN32 //We need _wfopen to support long file paths on Windows XP FILE* pFile = _wfopen( rFileName.native_file_string_w(), L"wb" ); #else FILE* pFile = fopen( rFileName.native_file_string().c_str(), "wb" ); @@ -303,7 +303,7 @@ void HelpLinker::link() throw(HelpProcessingException, BasicCodeTagger::TaggerEx bUse_ = false; fs::path helpTextFileName_DBHelp(indexDirParentName / (mod + (bUse_ ? ".ht_" : ".ht"))); -#ifdef WNT +#ifdef _WIN32 //We need _wfopen to support long file paths on Windows XP FILE* pFileHelpText_DBHelp = _wfopen ( helpTextFileName_DBHelp.native_file_string_w(), L"wb" ); @@ -314,7 +314,7 @@ void HelpLinker::link() throw(HelpProcessingException, BasicCodeTagger::TaggerEx #endif fs::path dbBaseFileName_DBHelp(indexDirParentName / (mod + (bUse_ ? ".db_" : ".db"))); -#ifdef WNT +#ifdef _WIN32 //We need _wfopen to support long file paths on Windows XP FILE* pFileDbBase_DBHelp = _wfopen ( dbBaseFileName_DBHelp.native_file_string_w(), L"wb" ); |