]> granicus.if.org Git - icu/commitdiff
ICU-13093 std::isinf and std::isnan fix
authorSteven R. Loomis <srl@icu-project.org>
Thu, 21 Sep 2017 00:25:49 +0000 (00:25 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Thu, 21 Sep 2017 00:25:49 +0000 (00:25 +0000)
X-SVN-Rev: 40438

icu4c/source/test/intltest/numfmtst.cpp

index ec251f1b4835a436c9823945504a686bed40fa99..f62bc36a158b5cd1e14a65f3db95fc432e76a934 100644 (file)
 #include "datadrivennumberformattestsuite.h"
 #include "unicode/msgfmt.h"
 
+#if U_PLATFORM == U_PF_AIX
+// These should not be macros. If they are, 
+// replace them with std::isnan and std::isinf
+#if defined(isnan)
+#undef isnan
+namespace std {
+ bool isnan(double x) {
+   return _isnan(x);
+ }
+}
+#endif
+#if defined(isinf)
+#undef isinf
+namespace std {
+ bool isinf(double x) {
+   return _isinf(x);
+ }
+}
+#endif
+#endif
+
+
 class NumberFormatTestDataDriven : public DataDrivenNumberFormatTestSuite {
 protected:
 UBool isFormatPass(