diff --git a/icu4c/source/test/intltest/nmfmapts.cpp b/icu4c/source/test/intltest/nmfmapts.cpp index 3c821e85f0d..8d8875e02fc 100644 --- a/icu4c/source/test/intltest/nmfmapts.cpp +++ b/icu4c/source/test/intltest/nmfmapts.cpp @@ -238,6 +238,8 @@ void IntlTestNumberFormatAPI::testAPI(/* char* par */) delete per_fr; } +#if !UCONFIG_NO_SERVICE + #define SRC_LOC Locale::getFrance() #define SWAP_LOC Locale::getUS() @@ -280,6 +282,7 @@ private: }; char NFTestFactory::gID = 0; +#endif void IntlTestNumberFormatAPI::testRegistration()