Dhondtguido / CalculiX

This repository contains the source files of CalculiX, a three-dimensional Finite Element Program (www.calculix.de).
GNU General Public License v2.0
72 stars 16 forks source link

_set_output_format(_TWO_DIGIT_EXPONENT); doesn't compile in MinGW64 #50

Open victorkemp opened 1 year ago

victorkemp commented 1 year ago

CalculiX.c and CalculiXstep.c have this code at the top which I can't get to compile for Windows:

ifdef __WIN32

_set_output_format(_TWO_DIGIT_EXPONENT);

endif

It looks like a function call outside a function body, or maybe _set_output_format is defined only in MS header files? I just remove it and it works fine. I wonder if this could be removed entirely? The MS standard library used to have that 2-digit-exponent problem which broke the output format of CCX but I don't think it does anymore.