mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Improve compatibility with bcc32
This commit is contained in:
5
format.h
5
format.h
@ -614,7 +614,10 @@ inline int getsign(double x) {
|
|||||||
int dec;
|
int dec;
|
||||||
explicit Ecvt(double val) : value(val), sign(0), dec(0) {}
|
explicit Ecvt(double val) : value(val), sign(0), dec(0) {}
|
||||||
void handle(int) {}
|
void handle(int) {}
|
||||||
void handle(Null<>) { ecvt(value, 0, &dec, &sign); }
|
void handle(fmt::internal::Null<>) { // Fully qualify to make bcc happy.
|
||||||
|
using namespace std;
|
||||||
|
ecvt(value, 0, &dec, &sign);
|
||||||
|
}
|
||||||
} e(value);
|
} e(value);
|
||||||
char buffer[2]; // The buffer size must be >= 2 or _ecvt_s will fail.
|
char buffer[2]; // The buffer size must be >= 2 or _ecvt_s will fail.
|
||||||
using namespace fmt_system;
|
using namespace fmt_system;
|
||||||
|
Reference in New Issue
Block a user