diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2016-03-23 09:35:24 -0400 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2016-03-23 09:35:24 -0400 |
commit | db98f18c7e1268f59166cd9dfd0c896efb187b88 (patch) | |
tree | 989673cf328c8a1683dde981e3d283280571bc9e /core/fpdfapi | |
parent | e91afbabec3b7c891b464efd221748edaba3c2bc (diff) | |
download | pdfium-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.cpp | 4 |
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) { |