Skip to content

Commit

Permalink
Fix popen on Windows
Browse files Browse the repository at this point in the history
I think this will work - I'm currently on linux, so it's kind of a
guess.
  • Loading branch information
michaelmalonenz committed Jun 16, 2024
1 parent 9e40f22 commit 229552d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stdlib/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
#include <cerrno>
#include <sstream>

#ifdef WIN32
#define popen _popen
#endif

#ifdef __cplusplus
extern "C" {
#endif
Expand Down

0 comments on commit 229552d

Please sign in to comment.