mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Fix MSVC build.
This commit is contained in:
parent
688de77b36
commit
9d49321115
10
format.cc
10
format.cc
@ -31,19 +31,9 @@
|
|||||||
#undef _SCL_SECURE_NO_WARNINGS
|
#undef _SCL_SECURE_NO_WARNINGS
|
||||||
#define _SCL_SECURE_NO_WARNINGS
|
#define _SCL_SECURE_NO_WARNINGS
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#include "format.h"
|
#include "format.h"
|
||||||
|
|
||||||
#include <cctype>
|
#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[] =
|
const char fmt::internal::DIGITS[] =
|
||||||
"0001020304050607080910111213141516171819"
|
"0001020304050607080910111213141516171819"
|
||||||
|
3
format.h
3
format.h
@ -181,6 +181,9 @@ inline int SignBit(double value) {
|
|||||||
_ecvt(value, 0, &dec, &sign);
|
_ecvt(value, 0, &dec, &sign);
|
||||||
return sign;
|
return sign;
|
||||||
}
|
}
|
||||||
|
inline int isinf(double x) { return !_finite(x); }
|
||||||
|
# undef snprintf
|
||||||
|
# define snprintf _snprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
template <typename Char>
|
template <typename Char>
|
||||||
|
Loading…
Reference in New Issue
Block a user