fixed windows popen, pclose

This commit is contained in:
2026-01-31 06:12:43 +03:00
parent 0db962db76
commit 3277873d0c
2 changed files with 10 additions and 0 deletions

View File

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

View File

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