Cherry-pick: ticket:11734: Bugfix: RelativeDateTimeFormatter with U_HIDE_DRAFT_API.
http://bugs.icu-project.org/trac/changeset/37520
Bug: 18694674
Change-Id: Ifa37bf7fa26ef74fdc69e1ec6ebe1d8ce071d6ab
diff --git a/icu4c/source/i18n/unicode/reldatefmt.h b/icu4c/source/i18n/unicode/reldatefmt.h
index 7b416cf..8fb551d 100644
--- a/icu4c/source/i18n/unicode/reldatefmt.h
+++ b/icu4c/source/i18n/unicode/reldatefmt.h
@@ -24,14 +24,12 @@
#if !UCONFIG_NO_FORMATTING && !UCONFIG_NO_BREAK_ITERATION
-#ifndef U_HIDE_DRAFT_API
-
/**
* The formatting style
* @draft ICU 54
*/
typedef enum UDateRelativeDateTimeFormatterStyle {
-
+#ifndef U_HIDE_DRAFT_API
/**
* Everything spelled out.
* @draft ICU 54
@@ -55,9 +53,11 @@
* @draft ICU 54
*/
UDAT_STYLE_COUNT
-} UDateRelativeDateTimeFormatterStyle;
-
+#else
+ /** @internal */
+ UDAT_RELATIVE_DATE_TIME_FORMATTER_STYLE_HIDDEN
#endif /* U_HIDE_DRAFT_API */
+} UDateRelativeDateTimeFormatterStyle;
/**
* Represents the unit for formatting a relative date. e.g "in 5 days"