From 5e8ce83b6808c98f311f088a8d1a085ffec1a672 Mon Sep 17 00:00:00 2001 From: Sean Cannella Date: Fri, 7 Feb 2014 06:25:43 -0800 Subject: [PATCH] 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 --- folly/json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.34.1