win32 fix: Output exponents the same way as for *nix

stl_dim
Marius Kintel 2011-11-06 18:38:16 +01:00
parent 45161d4356
commit 6bb261bcd5
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ string dumptree(const Tree &tree, const AbstractNode &node)
int main(int argc, char **argv)
{
#ifdef WIN32
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
if (argc != 3) {
fprintf(stderr, "Usage: %s <file.scad> <output.txt>\n", argv[0]);
exit(1);