mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Fix the build.
This commit is contained in:
parent
9d49321115
commit
74494c29cb
4
format.h
4
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 <typename Char>
|
||||
@ -919,7 +919,7 @@ class BasicFormatter : public BasicWriter<Char> {
|
||||
template <typename T>
|
||||
Arg(const T &value) : type(CUSTOM), formatter(0) {
|
||||
custom.value = &value;
|
||||
custom.format = &BasicFormatter::FormatCustomArg<T>;
|
||||
custom.format = &BasicFormatter<Char>::FormatCustomArg<T>;
|
||||
}
|
||||
|
||||
~Arg() {
|
||||
|
Loading…
Reference in New Issue
Block a user