1 Commits

Author SHA1 Message Date
3277873d0c fixed windows popen, pclose 2026-01-31 06:12:43 +03:00
2 changed files with 10 additions and 0 deletions

View File

@@ -8,6 +8,11 @@
#include <regex> #include <regex>
#include <string> #include <string>
#ifdef _WIN32
#define popen _popen
#define pclose _pclose
#endif
namespace clrsync::core namespace clrsync::core
{ {
static std::string run_command_capture_output(const std::string &cmd) static std::string run_command_capture_output(const std::string &cmd)

View File

@@ -9,6 +9,11 @@
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#ifdef _WIN32
#define popen _popen
#define pclose _pclose
#endif
namespace clrsync::core namespace clrsync::core
{ {
static std::string run_command_capture_output(const std::string &cmd) static std::string run_command_capture_output(const std::string &cmd)