X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/51004dcb01e06fef634b61be77ed73dd61cb6db9..d25163bfc042dbef00577180ee21dd3460fc3715:/icuSources/test/intltest/tfsmalls.cpp?ds=sidebyside diff --git a/icuSources/test/intltest/tfsmalls.cpp b/icuSources/test/intltest/tfsmalls.cpp index b32492f8..80bc1c57 100644 --- a/icuSources/test/intltest/tfsmalls.cpp +++ b/icuSources/test/intltest/tfsmalls.cpp @@ -1,7 +1,7 @@ /*********************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2012, International Business Machines Corporation + * Copyright (c) 1997-2014, International Business Machines Corporation * and others. All Rights Reserved. ***********************************************************************/ @@ -11,6 +11,7 @@ #include "intltest.h" #include "tfsmalls.h" +#include "cmemory.h" #include "unicode/msgfmt.h" #include "unicode/choicfmt.h" @@ -19,8 +20,6 @@ #include "unicode/fieldpos.h" #include "unicode/fmtable.h" -#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) - /*static UBool chkstatus( UErrorCode &status, char* msg = NULL ) { UBool ok = (status == U_ZERO_ERROR); @@ -255,7 +254,7 @@ void test_Formattable( void ) ucs, ucs_ptr }; - const int32_t ft_cnt = LENGTHOF(ftarray); + const int32_t ft_cnt = UPRV_LENGTHOF(ftarray); Formattable ft_arr( ftarray, ft_cnt ); UnicodeString temp; if ((ft_arr[0].getType() == Formattable::kDate) && (ft_arr[0].getDate() == 1.0)