This commit is contained in:
blueloveTH 2023-04-27 19:33:35 +08:00
parent cc84a01d4d
commit 2689e16bb6

View File

@ -3,13 +3,15 @@
#include "compiler.h" #include "compiler.h"
#include "ceval.h" #include "ceval.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
namespace pkpy{ namespace pkpy{
#ifdef _WIN32 #ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
inline std::string getline(bool* eof=nullptr) { inline std::string getline(bool* eof=nullptr) {
HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE); HANDLE hStdin = GetStdHandle(STD_INPUT_HANDLE);
std::wstringstream wss; std::wstringstream wss;