Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into pullrequest
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenModelica-Hudson committed Oct 20, 2015
2 parents 8c2f3ec + fe751df commit 56438a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions SimulationRuntime/c/util/omc_init.c
Expand Up @@ -30,6 +30,7 @@

#include <stdio.h>
#include "omc_init.h"
#include "meta/meta_modelica_segv.h"

pthread_key_t mmc_thread_data_key = 0;

Expand All @@ -46,14 +47,16 @@ void mmc_init_nogc()
}

#if defined(OMC_MINIMAL_RUNTIME)
void mmc_init(int withgc)
void mmc_init()
{
fprintf(stderr, "Error: called mmc_init (requesting garbage collection) when OMC was compiled with a minimal runtime system.");
exit(1);
}
#else
void mmc_init(int withgc)
#include "meta/gc/mmc_gc.h"
void mmc_init()
{
mmc_init_nogc();
mmc_GC_init();
}
#endif

0 comments on commit 56438a0

Please sign in to comment.