Fix error on MSVC.

This commit is contained in:
Victor Zverovich 2014-06-24 10:30:37 -07:00
parent 0195f543d9
commit 73fda2a8b1

View File

@ -1235,9 +1235,7 @@ TEST(FormatterTest, FormatNaN) {
double nan = std::numeric_limits<double>::quiet_NaN();
EXPECT_EQ("nan", str(Format("{}") << nan));
EXPECT_EQ("+nan", str(Format("{:+}") << nan));
#ifndef signbit
# define signbit std::signbit
#endif
using namespace std;
if (signbit(-nan))
EXPECT_EQ("-nan", str(Format("{}") << -nan));
else