From 74494c29cbce962cf52ac2d672885c2ed4f976df Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 5 Feb 2013 07:49:43 -0800 Subject: [PATCH] Fix the build. --- format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/format.h b/format.h index d5971618..6877104a 100644 --- a/format.h +++ b/format.h @@ -181,9 +181,9 @@ inline int SignBit(double value) { _ecvt(value, 0, &dec, &sign); return sign; } -inline int isinf(double x) { return !_finite(x); } # undef snprintf # define snprintf _snprintf +# define isinf(x) (!_finite(x)) #endif template @@ -919,7 +919,7 @@ class BasicFormatter : public BasicWriter { template Arg(const T &value) : type(CUSTOM), formatter(0) { custom.value = &value; - custom.format = &BasicFormatter::FormatCustomArg; + custom.format = &BasicFormatter::FormatCustomArg; } ~Arg() {