Skip to content

Commit

Permalink
simulationruntimec: added #include "gc.h" as GC_malloc was unknown to…
Browse files Browse the repository at this point in the history
… msvc

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17106 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Christian SChubert committed Sep 6, 2013
1 parent c4cd06d commit 8991fcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SimulationRuntime/c/util/index_spec.c
Expand Up @@ -35,6 +35,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "gc.h"

int index_spec_ok(const index_spec_t* s)
{
Expand Down Expand Up @@ -102,7 +103,7 @@ void create_index_spec(index_spec_t* dest, int nridx, ...)
dest->ndims = nridx;
dest->dim_size = size_alloc(nridx);
dest->index = index_alloc(nridx);
dest->index_type = GC_malloc(nridx+1);
dest->index_type = (char*)GC_malloc(nridx+1);
for(i = 0; i < nridx; ++i) {
dest->dim_size[i] = va_arg(ap, _index_t);
dest->index[i] = va_arg(ap, _index_t*);
Expand Down
1 change: 1 addition & 0 deletions SimulationRuntime/c/util/modelica_string.c
Expand Up @@ -35,6 +35,7 @@
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "gc.h"

int modelica_string_ok(const modelica_string_t* a)
{
Expand Down

0 comments on commit 8991fcb

Please sign in to comment.