Skip to content

Commit

Permalink
Fix for OSX
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16900 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 23, 2013
1 parent f9165fa commit 6f7d794
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Compiler/runtime/systemimpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,13 +614,14 @@ void* SystemImpl__systemCallParallel(void *lst)
}
#pragma omp parallel for private(i) schedule(dynamic)
for (i=0; i<sz; i++) {
/* fprintf(stderr, "Starting call %s\n", calls[i]); */
fprintf(stderr, "Starting call %s\n", calls[i]);
#if defined(__MINGW32__) || defined(_MSC_VER)
results[i] = system(calls[i]);
#else
results[i] = WEXITSTATUS(system(calls[i]));
results[i] = system(calls[i]);
results[i] = WEXITSTATUS(results[i]);
#endif
/* fprintf(stderr, "Finished call %s=%d\n", calls[i], results[i]); */
fprintf(stderr, "Finished call %s=%d\n", calls[i], results[i]);
}
free(calls);
free(results);
Expand Down

0 comments on commit 6f7d794

Please sign in to comment.