X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/a0b4f637ba1a6c3c5651b61a69303b029bacf7d3..2ca993e82fb37b597a3c73ecd1586a139a6579c5:/icuSources/test/intltest/windttst.cpp diff --git a/icuSources/test/intltest/windttst.cpp b/icuSources/test/intltest/windttst.cpp index b8b0823e..d0002ce8 100644 --- a/icuSources/test/intltest/windttst.cpp +++ b/icuSources/test/intltest/windttst.cpp @@ -1,6 +1,6 @@ /* ******************************************************************************** -* Copyright (C) 2005-2011, International Business Machines +* Copyright (C) 2005-2016, International Business Machines * Corporation and others. All Rights Reserved. ******************************************************************************** * @@ -39,8 +39,6 @@ # define NOMCX # include -#define ARRAY_SIZE(array) (sizeof array / sizeof array[0]) - static const char *getCalendarType(int32_t type) { switch (type) @@ -131,8 +129,8 @@ void Win32DateTimeTest::testLocales(TestLog *log) Locale ulocale(localeID); int32_t wdLength, wtLength; - wdLength = GetDateFormatW(lcidRecords[i].lcid, DATE_LONGDATE, &winNow, NULL, wdBuffer, ARRAY_SIZE(wdBuffer)); - wtLength = GetTimeFormatW(lcidRecords[i].lcid, 0, &winNow, NULL, wtBuffer, ARRAY_SIZE(wtBuffer)); + wdLength = GetDateFormatW(lcidRecords[i].lcid, DATE_LONGDATE, &winNow, NULL, wdBuffer, UPRV_LENGTHOF(wdBuffer)); + wtLength = GetTimeFormatW(lcidRecords[i].lcid, 0, &winNow, NULL, wtBuffer, UPRV_LENGTHOF(wtBuffer)); if (uprv_strchr(localeID, '@') > 0) { uprv_strcat(localeID, ";");