X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/f59164e3d128c7675a4d3934206346a3384e53a5..f3c0d7a59d99c2a94c6b8822291f0e42be3773c9:/icuSources/samples/numfmt/util.h diff --git a/icuSources/samples/numfmt/util.h b/icuSources/samples/numfmt/util.h index e50ef7aa..b1c2679a 100644 --- a/icuSources/samples/numfmt/util.h +++ b/icuSources/samples/numfmt/util.h @@ -1,12 +1,20 @@ /******************************************************************** + * © 2016 and later: Unicode, Inc. and others. + * License & terms of use: http://www.unicode.org/copyright.html#License + ************************************************************************* + ************************************************************************* * COPYRIGHT: * Copyright (c) 1999-2002, International Business Machines Corporation and * others. All Rights Reserved. - ********************************************************************/ + *************************************************************************/ #include "unicode/unistr.h" #include "unicode/fmtable.h" +#ifndef UPRV_LENGTHOF +#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) +#endif + // Verify that a UErrorCode is successful; exit(1) if not void check(UErrorCode& status, const char* msg);