]> granicus.if.org Git - icu/commitdiff
ICU-21249 Adds #if !UCONFIG_NO_FORMATTING around all code in number_symbolswrapper...
authorgnrunge <nrunge@google.com>
Tue, 15 Sep 2020 20:34:10 +0000 (13:34 -0700)
committerNorbert Runge <41129501+gnrunge@users.noreply.github.com>
Wed, 16 Sep 2020 16:19:03 +0000 (09:19 -0700)
If UCONFIG_NO_FORMATTING is set to 1 in uconfig.h nothing in
number_symbolswrapper.cpp compiles. Note, for example, that the entirety
of the included numberformatter.h header file is inclosed in
!UCONFIG_NO_FORMATTING.

ICU-21249 Properly arrange #if !UCONFIG_NO_FORMATTING.

icu4c/source/i18n/number_symbolswrapper.cpp

index 5f7648d703929d3515406da6f4b004c5bc427d09..ac3043d1ca11c2f332fca9d53013c99ddd71c873 100644 (file)
@@ -1,6 +1,10 @@
 // © 2020 and later: Unicode, Inc. and others.
 // License & terms of use: http://www.unicode.org/copyright.html
 
+#include "unicode/utypes.h"
+
+#if !UCONFIG_NO_FORMATTING
+
 #include "number_microprops.h"
 #include "unicode/numberformatter.h"
 
@@ -123,3 +127,5 @@ const NumberingSystem *SymbolsWrapper::getNumberingSystem() const {
     U_ASSERT(fType == SYMPTR_NS);
     return fPtr.ns;
 }
+
+#endif /* #if !UCONFIG_NO_FORMATTING */