]> granicus.if.org Git - icu/commitdiff
ICU-10253 Fix #include of math.h
authorAndy Heninger <andy.heninger@gmail.com>
Wed, 24 Jul 2013 18:09:39 +0000 (18:09 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Wed, 24 Jul 2013 18:09:39 +0000 (18:09 +0000)
X-SVN-Rev: 33974

icu4c/source/i18n/plurrule.cpp

index 5069c9a2b687e80f5b01a08a0e2ef6efc6e2f12c..d372537f2b15e40e6a9a528c488d68d3f38eea35 100644 (file)
@@ -7,12 +7,14 @@
 * File plurrule.cpp
 */
 
+#include <math.h>
+#include <stdio.h>
+
 #include "unicode/utypes.h"
 #include "unicode/localpointer.h"
 #include "unicode/plurrule.h"
 #include "unicode/upluralrules.h"
 #include "unicode/ures.h"
-#include "cmath"
 #include "cmemory.h"
 #include "cstring.h"
 #include "hash.h"
@@ -25,7 +27,6 @@
 #include "locutil.h"
 #include "uassert.h"
 #include "uvectr32.h"
-#include "stdio.h"
 
 #if !UCONFIG_NO_FORMATTING
 
@@ -830,7 +831,7 @@ AndConstraint::isFulfilled(const NumberInfo &number) {
         }
 
         if (op == MOD) {
-            n = std::fmod(n, opNum);
+            n = fmod(n, opNum);
         }
         if (rangeList == NULL) {
             result = value == -1 ||    // empty rule