From db98f18c7e1268f59166cd9dfd0c896efb187b88 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 23 Mar 2016 09:35:24 -0400 Subject: 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 . --- core/fpdfapi/fpdf_font/fpdf_font_cid.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core') 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) { -- cgit v1.2.3