Commit 0219d559 authored by vitaut's avatar vitaut

Improve compatibility with bcc32

parent 3a2f91bd
...@@ -614,7 +614,10 @@ inline int getsign(double x) { ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment