Index: core/src/fpdfdoc/doc_basic.cpp |
diff --git a/core/src/fpdfdoc/doc_basic.cpp b/core/src/fpdfdoc/doc_basic.cpp |
index 459ae87a0a38f965c40b64c01bac816f98d48bd7..ce05b8f5e1a5dcea8fcaa3153ccd1f9f6092da50 100644 |
--- a/core/src/fpdfdoc/doc_basic.cpp |
+++ b/core/src/fpdfdoc/doc_basic.cpp |
@@ -250,6 +250,7 @@ CPDF_Array* CPDF_NameTree::LookupNamedDest(CPDF_Document* pDoc, FX_BSTR sName) |
} |
return NULL; |
} |
+#if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
static CFX_WideString ChangeSlashToPlatform(FX_LPCWSTR str) |
{ |
CFX_WideString result; |
@@ -257,10 +258,8 @@ static CFX_WideString ChangeSlashToPlatform(FX_LPCWSTR str) |
if (*str == '/') { |
#if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
result += ':'; |
-#elif _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
- result += '\\'; |
#else |
- result += *str; |
+ result += '\\'; |
#endif |
} else { |
result += *str; |
@@ -269,6 +268,7 @@ static CFX_WideString ChangeSlashToPlatform(FX_LPCWSTR str) |
} |
return result; |
} |
+#endif |
static CFX_WideString FILESPEC_DecodeFileName(FX_WSTR filepath) |
{ |
if (filepath.GetLength() <= 1) { |
@@ -349,6 +349,7 @@ FX_BOOL CPDF_FileSpec::IsURL() const |
} |
return ((CPDF_Dictionary*)m_pObj)->GetString(FX_BSTRC("FS")) == FX_BSTRC("URL"); |
} |
+#if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
Tom Sepez
2015/02/02 18:48:36
nit: I'd put this together with ChangeSlashToPlatf
Lei Zhang
2015/02/07 00:51:30
Done.
|
static CFX_WideString ChangeSlashToPDF(FX_LPCWSTR str) |
{ |
CFX_WideString result; |
@@ -362,6 +363,7 @@ static CFX_WideString ChangeSlashToPDF(FX_LPCWSTR str) |
} |
return result; |
} |
+#endif |
CFX_WideString FILESPEC_EncodeFileName(FX_WSTR filepath) |
{ |
if (filepath.GetLength() <= 1) { |