ICU-11734 Bugfix: RelativeDateTimeFormatter with U_HIDE_DRAFT_API.
RelativeDateTimeFormatter has a member of type UDateRelativeDateTimeFormatterStyle, so this type must be declared even when setting U_HIDE_DRAFT_API, but it must then have a dummy enum value, for empty enum declarations are not valid. X-SVN-Rev: 37520
This commit is contained in:
parent
0b407a667b
commit
1b083389a4
@ -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 @@ typedef enum UDateRelativeDateTimeFormatterStyle {
|
||||
* @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"
|
||||
|
Loading…
Reference in New Issue
Block a user