Skip to content

Commit

Permalink
- included <limits> for std::numeric_limits required by VC++
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2693 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Feb 10, 2007
1 parent 16703d7 commit f3c4cdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c_runtime/simulation_result.cpp
Expand Up @@ -47,6 +47,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <limits> /* adrpo - for std::numeric_limits in MSVC */
#include "simulation_result.h"
#include "simulation_runtime.h"

Expand Down Expand Up @@ -149,7 +150,7 @@ int deinitializeResult(const char * filename)
}

// Rather ugly numbers than unneccessary rounding.
f.precision(numeric_limits<double>::digits10 + 1);
f.precision(std::numeric_limits<double>::digits10 + 1);
f << "#Ptolemy Plot file, generated by OpenModelica" << endl;
f << "#IntervalSize=" << actualPoints << endl;
f << "TitleText: OpenModelica simulation plot" << endl;
Expand Down

0 comments on commit f3c4cdb

Please sign in to comment.