Index: source/tools/toolutil/ppucd.cpp |
diff --git a/source/tools/toolutil/ppucd.cpp b/source/tools/toolutil/ppucd.cpp |
index ae51ed132dfe11168292d3fbad27633294a69df4..ed5229be786a600707be72fcd1f59cfdcbbeb6fa 100644 |
--- a/source/tools/toolutil/ppucd.cpp |
+++ b/source/tools/toolutil/ppucd.cpp |
@@ -1,6 +1,6 @@ |
/* |
******************************************************************************* |
-* Copyright (C) 2011-2013, International Business Machines |
+* Copyright (C) 2011-2014, International Business Machines |
* Corporation and others. All Rights Reserved. |
******************************************************************************* |
* file name: ppucd.cpp |
@@ -23,8 +23,6 @@ |
#include <stdio.h> |
#include <string.h> |
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) |
- |
U_NAMESPACE_BEGIN |
PropertyNames::~PropertyNames() {} |
@@ -298,7 +296,7 @@ PreparsedUCD::parseProperty(UniProps &props, const char *field, UnicodeSet &newV |
int32_t prop=pnames->getPropertyEnum(p); |
if(prop<0) { |
for(int32_t i=0;; ++i) { |
- if(i==LENGTHOF(ppucdProperties)) { |
+ if(i==UPRV_LENGTHOF(ppucdProperties)) { |
// Ignore unknown property names. |
return TRUE; |
} |