summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-03-23 09:35:24 -0400
committerDan Sinclair <dsinclair@chromium.org>2016-03-23 09:35:24 -0400
commitdb98f18c7e1268f59166cd9dfd0c896efb187b88 (patch)
tree989673cf328c8a1683dde981e3d283280571bc9e /core/fpdfapi
parente91afbabec3b7c891b464efd221748edaba3c2bc (diff)
downloadpdfium-db98f18c7e1268f59166cd9dfd0c896efb187b88.tar.xz
Fix build on win/clang
EmbeddedCharcodeFromUnicode is not used on windows anymore and clang complains. TBR=weili@chromium.org Review URL: https://codereview.chromium.org/1828673002 .
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/fpdf_font/fpdf_font_cid.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp b/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp
index 351df608d2..98051cb7aa 100644
--- a/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp
+++ b/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp
@@ -298,6 +298,7 @@ bool IsValidEmbeddedCharcodeFromUnicodeCharset(CIDSet charset) {
}
#if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
+
FX_DWORD EmbeddedCharcodeFromUnicode(const FXCMAP_CMap* pEmbedMap,
CIDSet charset,
FX_WCHAR unicode) {
@@ -321,7 +322,6 @@ FX_DWORD EmbeddedCharcodeFromUnicode(const FXCMAP_CMap* pEmbedMap,
}
return 0;
}
-#endif // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
FX_WCHAR EmbeddedUnicodeFromCharcode(const FXCMAP_CMap* pEmbedMap,
CIDSet charset,
@@ -344,6 +344,8 @@ FX_WCHAR EmbeddedUnicodeFromCharcode(const FXCMAP_CMap* pEmbedMap,
return 0;
}
+#endif // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
+
void FT_UseCIDCharmap(FXFT_Face face, int coding) {
int encoding;
switch (coding) {