mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-5575 Fix last change by making the static function a proper C callback.
X-SVN-Rev: 22328
This commit is contained in:
parent
e24fdaf785
commit
059d96e0e8
1 changed files with 11 additions and 9 deletions
|
@ -15,6 +15,17 @@
|
|||
#include "cmemory.h"
|
||||
#include "uarrsort.h"
|
||||
|
||||
U_CDECL_BEGIN
|
||||
// UComparator function for sorting start times
|
||||
static int32_t U_CALLCONV
|
||||
compareDates(const void * /*context*/, const void *left, const void *right) {
|
||||
UDate l = *((UDate*)left);
|
||||
UDate r = *((UDate*)right);
|
||||
int32_t res = l < r ? -1 : (l == r ? 0 : 1);
|
||||
return res;
|
||||
}
|
||||
U_CDECL_END
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
TimeZoneRule::TimeZoneRule(const UnicodeString& name, int32_t rawOffset, int32_t dstSavings)
|
||||
|
@ -386,15 +397,6 @@ AnnualTimeZoneRule::getPreviousStart(const UDate base,
|
|||
|
||||
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(TimeArrayTimeZoneRule)
|
||||
|
||||
// UComparator function for sorting start times
|
||||
static int32_t
|
||||
compareDates(const void * /*context*/, const void *left, const void *right) {
|
||||
UDate l = *((UDate*)left);
|
||||
UDate r = *((UDate*)right);
|
||||
int32_t res = l < r ? -1 : (l == r ? 0 : 1);
|
||||
return res;
|
||||
}
|
||||
|
||||
TimeArrayTimeZoneRule::TimeArrayTimeZoneRule(const UnicodeString& name,
|
||||
int32_t rawOffset,
|
||||
int32_t dstSavings,
|
||||
|
|
Loading…
Add table
Reference in a new issue