Skip to content

Commit

Permalink
Windows compilation
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16894 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 22, 2013
1 parent 18e300f commit ac65998
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Compiler/runtime/systemimpl.c
Expand Up @@ -615,7 +615,11 @@ 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]); */
#if defined(__MINGW32__) || defined(_MSC_VER)
results[i] = system(calls[i]);
#else
results[i] = WEXITSTATUS(system(calls[i]));
#endif
/* fprintf(stderr, "Finished call %s=%d\n", calls[i], results[i]); */
}
free(calls);
Expand Down

0 comments on commit ac65998

Please sign in to comment.