Fix MSVC build.

This commit is contained in:
Victor Zverovich 2013-02-05 07:43:15 -08:00
parent 688de77b36
commit 9d49321115
2 changed files with 3 additions and 10 deletions

View File

@ -31,19 +31,9 @@
#undef _SCL_SECURE_NO_WARNINGS
#define _SCL_SECURE_NO_WARNINGS
#include <math.h>
#include "format.h"
#include <cctype>
#include <cstring>
#include <algorithm>
#if _MSC_VER
# undef snprintf
# define snprintf _snprintf
# define isinf(x) (!_finite(x))
#endif
const char fmt::internal::DIGITS[] =
"0001020304050607080910111213141516171819"

View File

@ -181,6 +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
#endif
template <typename Char>