Index: source/test/cintltst/cgendtst.c |
diff --git a/source/test/cintltst/cgendtst.c b/source/test/cintltst/cgendtst.c |
index ff3131fefefdc33e3a64823c8e4441e15d6a9d9a..0e7d54445b16420c843ddcc84f75498afbec160c 100644 |
--- a/source/test/cintltst/cgendtst.c |
+++ b/source/test/cintltst/cgendtst.c |
@@ -1,6 +1,6 @@ |
/******************************************************************** |
* COPYRIGHT: |
- * Copyright (c) 1997-2012, International Business Machines Corporation and |
+ * Copyright (c) 1997-2014, International Business Machines Corporation and |
* others. All Rights Reserved. |
********************************************************************/ |
/******************************************************************************** |
@@ -12,6 +12,7 @@ |
/* C API TEST FOR GENDER INFO */ |
#include "unicode/utypes.h" |
+#include "cmemory.h" |
#if !UCONFIG_NO_FORMATTING |
@@ -20,8 +21,6 @@ |
static const UGender kAllFemale[] = {UGENDER_FEMALE, UGENDER_FEMALE}; |
-#define LENGTHOF(array) (int32_t)(sizeof(array) / sizeof((array)[0])) |
- |
void addGendInfoForTest(TestNode** root); |
static void TestGenderInfo(void); |
@@ -40,7 +39,7 @@ static void TestGenderInfo(void) { |
log_err_status(status, "Fail to create UGenderInfo - %s (Are you missing data?)", u_errorName(status)); |
return; |
} |
- actual = ugender_getListGender(actual_gi, kAllFemale, LENGTHOF(kAllFemale), &status); |
+ actual = ugender_getListGender(actual_gi, kAllFemale, UPRV_LENGTHOF(kAllFemale), &status); |
if (U_FAILURE(status)) { |
log_err("Fail to get gender of list - %s\n", u_errorName(status)); |
return; |