From: Sean Cannella Date: Fri, 7 Feb 2014 14:25:43 +0000 (-0800) Subject: Fix OS X compilation X-Git-Tag: v0.22.0~699 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5e8ce83b6808c98f311f088a8d1a085ffec1a672;p=folly.git Fix OS X compilation Summary: Fix OS X compilation Test Plan: compiled on OS X Reviewed By: delong.j@fb.com FB internal diff: D1163199 --- diff --git a/folly/json.cpp b/folly/json.cpp index 28fe5f11..3141d1b2 100644 --- a/folly/json.cpp +++ b/folly/json.cpp @@ -127,7 +127,7 @@ struct Printer { switch (v.type()) { case dynamic::DOUBLE: if (!opts_.allow_nan_inf && - (isnan(v.asDouble()) || isinf(v.asDouble()))) { + (std::isnan(v.asDouble()) || std::isinf(v.asDouble()))) { throw std::runtime_error("folly::toJson: JSON object value was a " "NaN or INF"); }