]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/numfmt/util.h
ICU-59117.0.1.tar.gz
[apple/icu.git] / icuSources / samples / numfmt / util.h
index e50ef7aae2cd86e9315cad934cab2626661145b0..b1c2679a00d8a11bd1e10b990423208d7198fab2 100644 (file)
@@ -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);