Only define UTF16ToWChar() on relevant platforms.
Define the function at compile time instead of choosing to use it at
runtime.
Just as importantly, explicitly allow the use of build/build_config.h
everywhere. It is already implicitly allowed through headers in
third_party/base. This will allow PDFium to eventually standarize on
defines from build/build_config.h and remove redundant defines from
core/fxcrt/fx_system.h.
Change-Id: I5781a2322f8633c55945ddb59867b1ee74e96a2d
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/52012
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
diff --git a/DEPS b/DEPS
index f449dc4..3bbf396 100644
--- a/DEPS
+++ b/DEPS
@@ -135,6 +135,7 @@
include_rules = [
# Basic stuff that everyone can use.
# Note: public is not here because core cannot depend on public.
+ '+build/build_config.h',
'+constants',
'+testing',
'+third_party/base',