🐛 fix compilation error on MSVC

This commit is contained in:
ValKmjolnir 2024-06-10 00:36:52 +08:00
parent d48c9f44e8
commit 2337994b08
1 changed files with 6 additions and 0 deletions

View File

@ -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 <cstdio>
namespace nasal {