diff --git a/icu4c/source/common/sprpimpl.h b/icu4c/source/common/sprpimpl.h index 2589d934883..2c46da0c4c8 100644 --- a/icu4c/source/common/sprpimpl.h +++ b/icu4c/source/common/sprpimpl.h @@ -39,8 +39,7 @@ enum { _IDNA_MAP_TO_NOTHING = 0xFFF }; -U_CFUNC UBool U_EXPORT2 -ustrprep_cleanup(); + /* error codes for prototyping #define U_IDNA_ERROR_START U_ERROR_LIMIT diff --git a/icu4c/source/common/strprep.cpp b/icu4c/source/common/strprep.cpp index 861cc7c4702..8e7713b97ea 100644 --- a/icu4c/source/common/strprep.cpp +++ b/icu4c/source/common/strprep.cpp @@ -36,7 +36,7 @@ static UErrorCode dataErrorCode =U_ZERO_ERROR; static const char* DATA_NAME = "uidna"; static const char* DATA_TYPE = "icu"; -U_CFUNC UBool U_EXPORT2 +U_CFUNC UBool ustrprep_cleanup() { if(idnData!=NULL) { udata_close(idnData); diff --git a/icu4c/source/common/ucln_cmn.c b/icu4c/source/common/ucln_cmn.c index a10b4e1511e..63b21d3bca0 100644 --- a/icu4c/source/common/ucln_cmn.c +++ b/icu4c/source/common/ucln_cmn.c @@ -70,7 +70,7 @@ u_cleanup(void) ures_cleanup(); udata_cleanup(); putil_cleanup(); - + ustrprep_cleanup(); /* * WARNING! Destroying the global mutex can cause synchronization * problems. ICU must be reinitialized from a single thread diff --git a/icu4c/source/common/ucln_cmn.h b/icu4c/source/common/ucln_cmn.h index 998b957b7c0..9cd0170b4cd 100644 --- a/icu4c/source/common/ucln_cmn.h +++ b/icu4c/source/common/ucln_cmn.h @@ -37,6 +37,8 @@ U_CFUNC UBool ustring_cleanup(void); U_CFUNC UBool breakiterator_cleanup(void); +U_CFUNC UBool ustrprep_cleanup(void); + #ifdef ICU_UNICODECONVERTER_USE_DEPRECATES /* Obsolete: The UnicodeConverter is obsolete and going away. */ /* @return true if cleanup complete successfully*/