X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/test/perf/utfperf/utfperf.cpp diff --git a/icuSources/test/perf/utfperf/utfperf.cpp b/icuSources/test/perf/utfperf/utfperf.cpp index e5e26ca4..559e3fab 100644 --- a/icuSources/test/perf/utfperf/utfperf.cpp +++ b/icuSources/test/perf/utfperf/utfperf.cpp @@ -1,6 +1,6 @@ /* ********************************************************************** - * Copyright (C) 2002-2007, International Business Machines + * Copyright (C) 2002-2014, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * file name: utfperf.cpp @@ -18,10 +18,9 @@ #include #include #include "unicode/uperf.h" +#include "cmemory.h" // for UPRV_LENGTHOF #include "uoptions.h" -#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) - /* definitions and text buffers */ #define INPUT_CAPACITY (1024*1024) @@ -67,7 +66,7 @@ static const char *const utfperf_usage = class UtfPerformanceTest : public UPerfTest{ public: UtfPerformanceTest(int32_t argc, const char *argv[], UErrorCode &status) - : UPerfTest(argc, argv, options, LENGTHOF(options), utfperf_usage, status) { + : UPerfTest(argc, argv, options, UPRV_LENGTHOF(options), utfperf_usage, status) { if (U_SUCCESS(status)) { charset = options[CHARSET].value;