Skip to content

Commit

Permalink
- Don't ask me why it does not work, but I had to ifdef out the THROW…
Browse files Browse the repository at this point in the history
… in division.c or linking fails on OSX

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11447 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 16, 2012
1 parent 72982a6 commit 5d7f83e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SimulationRuntime/c/util/division.c
Expand Up @@ -39,7 +39,8 @@ modelica_real division_error(modelica_real b, const char* division_str, const ch
{
WARNING1("division by zero in partial equation: %s", division_str);
WARNING_AL2("[line] %ld | [file] %s", line, file);
#ifndef __APPLE_CC__
THROW("division by zero");

#endif
return b;
}
2 changes: 1 addition & 1 deletion SimulationRuntime/c/util/omc_error.c
Expand Up @@ -29,7 +29,7 @@
*
*/

#include "omc_error.h"
#include "setjmp.h"

/* Global JumpBuffer */
jmp_buf globalJmpbuf;
Expand Down

0 comments on commit 5d7f83e

Please sign in to comment.