ICU-22534 Fixed a couple issues from the API-promotions PR that Frank found in code review.

This commit is contained in:
Rich Gillam 2024-03-12 15:34:23 -07:00 committed by Rich Gillam
parent d43d216feb
commit 1cedbbd90d
2 changed files with 0 additions and 7 deletions

View file

@ -474,12 +474,7 @@ enum UCalendarDateFields {
* One more than the highest normal UCalendarDateFields value.
* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
*/
#ifdef U_HIDE_DRAFT_API
// Must include all fields that will be in structs
UCAL_FIELD_COUNT = UCAL_IS_LEAP_MONTH + 2,
#else // U_HIDE_DRAFT_API (for UCAL_ORDINAL_MONTH)
UCAL_FIELD_COUNT = UCAL_ORDINAL_MONTH + 1,
#endif // U_HIDE_DRAFT_API (for UCAL_ORDINAL_MONTH)
#endif // U_FORCE_HIDE_DEPRECATED_API

View file

@ -107,9 +107,7 @@ static const Field names_UCalendarDateFields[] =
FIELD_NAME_STR( LEN_UCAL, UCAL_JULIAN_DAY ),
FIELD_NAME_STR( LEN_UCAL, UCAL_MILLISECONDS_IN_DAY ),
FIELD_NAME_STR( LEN_UCAL, UCAL_IS_LEAP_MONTH ),
#ifndef U_HIDE_DRAFT_API
FIELD_NAME_STR( LEN_UCAL, UCAL_ORDINAL_MONTH ),
#endif // U_HIDE_DRAFT_API
};