X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..5ea0322b6ab2af986e4c764284141380031dd014:/icuSources/tools/icuswap/icuswap.cpp diff --git a/icuSources/tools/icuswap/icuswap.cpp b/icuSources/tools/icuswap/icuswap.cpp index a5295df6..2bc5a6cc 100644 --- a/icuSources/tools/icuswap/icuswap.cpp +++ b/icuSources/tools/icuswap/icuswap.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2003-2007, International Business Machines +* Copyright (C) 2003-2014, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -41,7 +41,6 @@ /* definitions */ -#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) #define DEFAULT_PADDING_LENGTH 15 static UOption options[]={ @@ -130,7 +129,7 @@ main(int argc, char *argv[]) { pname=argv[0]; } - argc=u_parseArgs(argc, argv, LENGTHOF(options), options); + argc=u_parseArgs(argc, argv, UPRV_LENGTHOF(options), options); ishelp=options[OPT_HELP_H].doesOccur || options[OPT_HELP_QUESTION_MARK].doesOccur; if(ishelp || argc!=3) { return printUsage(pname, ishelp);