]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/tools/genccode/genccode.c
ICU-62107.0.1.tar.gz
[apple/icu.git] / icuSources / tools / genccode / genccode.c
index d489fd5d9c3dfe72c53e8ef4f01e80e31d532cb4..d35b5890105d9c635d7b7bf3d3accbd3c16e39bf 100644 (file)
@@ -1,10 +1,12 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
  *******************************************************************************
- *   Copyright (C) 1999-2011, International Business Machines
+ *   Copyright (C) 1999-2016, International Business Machines
  *   Corporation and others.  All Rights Reserved.
  *******************************************************************************
  *   file name:  gennames.c
- *   encoding:   US-ASCII
+ *   encoding:   UTF-8
  *   tab size:   8 (not used)
  *   indentation:4
  *
@@ -30,7 +32,7 @@
 #include <time.h>
 #endif
 
-#if U_PLATFORM_IS_LINUX_BASED
+#if U_PLATFORM_IS_LINUX_BASED && U_HAVE_ELF_H
 #   define U_ELF
 #endif
 
@@ -98,7 +100,7 @@ main(int argc, char* argv[]) {
     options[kOptDestDir].value = ".";
 
     /* read command line options */
-    argc=u_parseArgs(argc, argv, sizeof(options)/sizeof(options[0]), options);
+    argc=u_parseArgs(argc, argv, UPRV_LENGTHOF(options), options);
 
     /* error handling, printing usage message */
     if(argc<0) {