From 2337994b081484f8f258db35e27208abac37808f Mon Sep 17 00:00:00 2001 From: ValKmjolnir Date: Mon, 10 Jun 2024 00:36:52 +0800 Subject: [PATCH] :bug: fix compilation error on MSVC --- src/natives/subprocess.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/natives/subprocess.cpp b/src/natives/subprocess.cpp index 16161bd..f6974e0 100644 --- a/src/natives/subprocess.cpp +++ b/src/natives/subprocess.cpp @@ -1,5 +1,11 @@ #include "natives/subprocess.h" +// if you ask why, i will say: only MSVC +#ifdef _MSC_VER +#define popen _popen +#define pclose _pclose +#endif + #include namespace nasal {