diff --git a/icu4c/source/i18n/unicode/calendar.h b/icu4c/source/i18n/unicode/calendar.h index f5064ae451..b7e73e3c27 100644 --- a/icu4c/source/i18n/unicode/calendar.h +++ b/icu4c/source/i18n/unicode/calendar.h @@ -2023,6 +2023,7 @@ private: char actualLocale[ULOC_FULLNAME_CAPACITY]; public: +#if !UCONFIG_NO_SERVICE /** * INTERNAL FOR 2.6 -- Registration. */ @@ -2074,6 +2075,7 @@ private: * @internal */ friend class DefaultCalendarFactory; +#endif /* !UCONFIG_NO_SERVICE */ /** * @internal