Skip to content

Commit

Permalink
Init Boehm GC (necessary for OSX)
Browse files Browse the repository at this point in the history
Bug was introduced in 2ed993a, copy-paste error.
  • Loading branch information
sjoelund committed Oct 20, 2015
1 parent 6544142 commit fe751df
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 fe751df

Please sign in to comment.