]> granicus.if.org Git - icu/commitdiff
ICU-10468 Add check for if format is disabled
authorMichael Ow <mow@svn.icu-project.org>
Tue, 3 Dec 2013 04:47:04 +0000 (04:47 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Tue, 3 Dec 2013 04:47:04 +0000 (04:47 +0000)
X-SVN-Rev: 34701

icu4c/source/i18n/decimalformatpattern.cpp
icu4c/source/i18n/decimalformatpattern.h

index aad7128db6c6bb7b0c43ac136e90eed6e8530e05..4ed7ca367b4dfb5688545099342478e8caf06650 100644 (file)
@@ -7,6 +7,9 @@
 
 #include "uassert.h"
 #include "decimalformatpattern.h"
+
+#if !UCONFIG_NO_FORMATTING
+
 #include "unicode/dcfmtsym.h"
 #include "unicode/format.h"
 #include "unicode/utf16.h"
@@ -639,3 +642,5 @@ DecimalFormatPatternParser::applyPatternWithoutExpandAffix(
 }
 
 U_NAMESPACE_END
+
+#endif /* !UCONFIG_NO_FORMATTING */
index 6e8f30c6dd8001ba50014ba3aabe9eac7fa21d05..4913b7cc5ae2b870e6b36c68298bde9a5eef4950 100644 (file)
@@ -8,6 +8,9 @@
 #define _DECIMAL_FORMAT_PATTERN
 
 #include "unicode/utypes.h"
+
+#if !UCONFIG_NO_FORMATTING
+
 #include "unicode/uobject.h"
 #include "unicode/unistr.h"
 #include "digitlst.h"
@@ -92,4 +95,5 @@ class DecimalFormatPatternParser : UMemory {
 
 U_NAMESPACE_END
 
+#endif /* !UCONFIG_NO_FORMATTING */
 #endif