Ensure exactly 1 WCHAR_T_IS_*_BIT define is defined

Recently, https://crrev.com/1221176 renamed WCHAR_T_IS_UTF* to
WCHAR_T_IS_*_BIT, while PDFium was still using the old defines in a
Chromium build and the build succeeded. Add some checks to sanity check
that one and only one WCHAR_T_IS_*_BIT define exists.

Change-Id: Ifae9d4f1784192b080dadad718482995f346368e
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/113532
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/core/fxcrt/fx_string.cpp b/core/fxcrt/fx_string.cpp
index 67df7b5..37b6692 100644
--- a/core/fxcrt/fx_string.cpp
+++ b/core/fxcrt/fx_string.cpp
@@ -21,6 +21,13 @@
 #include "third_party/base/compiler_specific.h"
 #include "third_party/base/containers/span.h"
 
+#if !defined(WCHAR_T_IS_16_BIT) && !defined(WCHAR_T_IS_32_BIT)
+#error "Unknown wchar_t size"
+#endif
+#if defined(WCHAR_T_IS_16_BIT) && defined(WCHAR_T_IS_32_BIT)
+#error "Conflicting wchar_t sizes"
+#endif
+
 namespace {
 
 // Appends a Unicode code point to a `ByteString` using UTF-8.