Skip to content

Commit

Permalink
- Fix Windows build.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18294 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Nov 25, 2013
1 parent 8645b50 commit b885350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/runtime/systemimpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,12 @@ int SystemImpl__systemCall(const char* str, const char* outFile)
fflush(NULL); /* flush output so the testsuite is deterministic */
#if defined(__MINGW32__) || defined(_MSC_VER)
if (*outFile) {
const char *command = malloc(strlen(str) + strlen(outFile) + 9):
const char *command = malloc(strlen(str) + strlen(outFile) + 9);
sprintf(command, "%s > %s 2>&1");
status = system(command);
free(command);
} else {
status = system(command);
status = system(str);
}
#else
pid_t pID = vfork();
Expand Down

0 comments on commit b885350

Please sign in to comment.