ICU-3319 Fix result check for uprv_memcmp and update namespace renaming
X-SVN-Rev: 26731
This commit is contained in:
parent
185f4dee9d
commit
ecae93acea
@ -64,7 +64,7 @@ U_CAPI UBool U_EXPORT2 u_isDataOlder(UVersionInfo dataVersionFillin, UBool *isMo
|
||||
if (U_SUCCESS(*status)) {
|
||||
u_versionFromString(wiredVersion, U_ICU_DATA_VERSION);
|
||||
|
||||
if (uprv_memcmp(dataVersion, wiredVersion, sizeof(UVersionInfo)) != -1) {
|
||||
if (uprv_memcmp(dataVersion, wiredVersion, sizeof(UVersionInfo)) >= 0) {
|
||||
result = FALSE;
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@
|
||||
* This value will change in the subsequent releases of ICU
|
||||
* @stable ICU 2.6
|
||||
*/
|
||||
#define U_ICU_VERSION_SUFFIX _4_3
|
||||
#define U_ICU_VERSION_SUFFIX _43
|
||||
|
||||
/** Glued version suffix function for renamers
|
||||
* This value will change in the subsequent releases of ICU.
|
||||
|
@ -114,7 +114,7 @@ typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH];
|
||||
# define U_ICU_NAMESPACE icu
|
||||
namespace U_ICU_NAMESPACE { }
|
||||
# else
|
||||
# define U_ICU_NAMESPACE icu_4_3
|
||||
# define U_ICU_NAMESPACE U_ICU_ENTRY_POINT_RENAME(icu)
|
||||
namespace U_ICU_NAMESPACE { }
|
||||
namespace icu = U_ICU_NAMESPACE;
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user