Index: source/tools/toolutil/pkg_icu.cpp |
diff --git a/source/tools/toolutil/pkg_icu.cpp b/source/tools/toolutil/pkg_icu.cpp |
index e543220a05697ff1fafd077928539fff0ba4fe8d..c2f3904878dc3a4c690de991fe9d3ec5ed754fd7 100644 |
--- a/source/tools/toolutil/pkg_icu.cpp |
+++ b/source/tools/toolutil/pkg_icu.cpp |
@@ -1,5 +1,5 @@ |
/****************************************************************************** |
- * Copyright (C) 2008-2013, International Business Machines |
+ * Copyright (C) 2008-2014, International Business Machines |
* Corporation and others. All Rights Reserved. |
******************************************************************************* |
*/ |
@@ -16,9 +16,6 @@ |
#include <stdlib.h> |
#include <string.h> |
- |
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) |
- |
// read a file list -------------------------------------------------------- *** |
U_NAMESPACE_USE |
@@ -38,7 +35,7 @@ isListTextFile(const char *listname) { |
const char *listNameEnd=strchr(listname, 0); |
const char *suffix; |
int32_t i, length; |
- for(i=0; i<LENGTHOF(listFileSuffixes); ++i) { |
+ for(i=0; i<UPRV_LENGTHOF(listFileSuffixes); ++i) { |
suffix=listFileSuffixes[i].suffix; |
length=listFileSuffixes[i].length; |
if((listNameEnd-listname)>length && 0==memcmp(listNameEnd-length, suffix, length)) { |