]> granicus.if.org Git - icu/commitdiff
ICU-21532 In UTimeZoneLocalOption enum, add dummy value if U_HIDE_DRAFT_API
authorPeter Edberg <pedberg@unicode.org>
Thu, 11 Mar 2021 07:12:37 +0000 (23:12 -0800)
committerPeter Edberg <42151464+pedberg-icu@users.noreply.github.com>
Thu, 11 Mar 2021 18:40:24 +0000 (10:40 -0800)
icu4c/source/i18n/unicode/ucal.h

index 509adb260953399340e43977fef338f951a484d4..e63be68538297f36650e738b854edec1ec63015c 100644 (file)
@@ -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 */