Skip to content

Commit

Permalink
port-mingw: some WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasdr committed Jan 9, 2025
1 parent 5fc6d6c commit 30a6fed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/minitscript/minitscript/ApplicationMethods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ const string ApplicationMethods::execute(const string& command, int* exitCode, s
// error stream
string errorFile;
if (error != nullptr) {
errorFile = tmpnam(nullptr);
#if defined(__MINGW32__) || defined(__MINGW64__)
errorFile = "." + tmpnam(nullptr);
#else
errorFile = tmpnam(nullptr);
#endif
_command+= " 2>" + errorFile;
}
// execute command
Expand Down

0 comments on commit 30a6fed

Please sign in to comment.