From f3d398a293ce924daaeec3319acd4b2a6eb632a7 Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Thu, 21 Feb 2013 22:37:26 +0000 Subject: [PATCH] ICU-9944 Fix function name collision X-SVN-Rev: 33295 --- icu4c/source/i18n/decimfmt.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/icu4c/source/i18n/decimfmt.cpp b/icu4c/source/i18n/decimfmt.cpp index 69cb3ddb01a..b8dd0c5c18d 100644 --- a/icu4c/source/i18n/decimfmt.cpp +++ b/icu4c/source/i18n/decimfmt.cpp @@ -71,6 +71,15 @@ #include "decfmtst.h" #include "dcfmtimp.h" +/* + * On certain platforms, round is a macro defined in math.h + * This undefine is to avoid conflict between the macro and + * the function defined below. + */ +#ifdef round +#undef round +#endif + U_NAMESPACE_BEGIN -- 2.40.0