fix build
parent
c2a86f1625
commit
14436d6aa0
|
@ -7,6 +7,7 @@
|
|||
#include <optional>
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
#include "cubescript_conf.hh"
|
||||
|
||||
|
@ -15,7 +16,6 @@
|
|||
#include <ostd/string.hh>
|
||||
#include <ostd/vector.hh>
|
||||
#include <ostd/range.hh>
|
||||
#include <ostd/utility.hh>
|
||||
#include <ostd/io.hh>
|
||||
#include <ostd/format.hh>
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <type_traits>
|
||||
|
||||
#include <ostd/string.hh>
|
||||
#include <ostd/utility.hh>
|
||||
#include <ostd/unordered_map.hh>
|
||||
|
||||
namespace cscript {
|
||||
|
|
|
@ -1817,7 +1817,7 @@ static bool cs_run_file(
|
|||
std::unique_ptr<char[]> buf;
|
||||
size_t len;
|
||||
|
||||
ostd::FileStream f(fname, ostd::StreamMode::read);
|
||||
ostd::file_stream f(fname, ostd::stream_mode::READ);
|
||||
if (!f.is_open()) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue