Skip to content

Commit

Permalink
- Use system isnan
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11592 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 28, 2012
1 parent 7a57eee commit 0824b11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SimulationRuntime/c/util/division.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include "division.h"
#include "omc_error.h"
Expand All @@ -45,7 +46,10 @@ modelica_real division_error(modelica_real b, const char* division_str, const ch
return b;
}

#define isnan(x) ((x) != (x))
#if defined(_MSC_VER)
#include <float.h>
#define isnan _isnan
#endif

modelica_real isnan_error(modelica_real b, const char* division_str, const char* file, long line)
{
Expand Down

0 comments on commit 0824b11

Please sign in to comment.