From 3dd1ca10df1f4b5015c034f57b0f9ce34aa5c0ce Mon Sep 17 00:00:00 2001 From: Peter Edberg Date: Wed, 10 Mar 2021 23:12:37 -0800 Subject: [PATCH] ICU-21532 In UTimeZoneLocalOption enum, add dummy value if U_HIDE_DRAFT_API --- icu4c/source/i18n/unicode/ucal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/icu4c/source/i18n/unicode/ucal.h b/icu4c/source/i18n/unicode/ucal.h index 509adb26095..e63be685382 100644 --- a/icu4c/source/i18n/unicode/ucal.h +++ b/icu4c/source/i18n/unicode/ucal.h @@ -1674,6 +1674,13 @@ enum UTimeZoneLocalOption { * @draft ICU 69 */ UCAL_TZ_LOCAL_DAYLIGHT_LATTER = UCAL_TZ_LOCAL_LATTER | 0x03, +#else /* U_HIDE_DRAFT_API */ + /** + * Dummy value to prevent empty enum if U_HIDE_DRAFT_API. + * This will go away when draft conditionals are removed. + * @internal + */ + UCAL_TZ_LOCAL_NONE = 0, #endif /* U_HIDE_DRAFT_API */ }; typedef enum UTimeZoneLocalOption UTimeZoneLocalOption; /**< @draft ICU 69 */ -- 2.40.0