mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-11-02 13:30:34 +00:00
Fixed build problem on Raspberry PI.
This commit is contained in:
1 parent
1ee29f7b2c
commit
5b0c90d3b3
1 file changed
+1
-1
@@ -297,7 +297,7 @@ inline bool is_dir(const std::string& s)
|
|||||||
|
|
||||||
inline void read_file(const std::string& path, std::string& out)
|
inline void read_file(const std::string& path, std::string& out)
|
||||||
{
|
{
|
||||||
auto fs = std::ifstream(path, std::ios_base::binary);
|
std::ifstream fs(path, std::ios_base::binary);
|
||||||
fs.seekg(0, std::ios_base::end);
|
fs.seekg(0, std::ios_base::end);
|
||||||
auto size = fs.tellg();
|
auto size = fs.tellg();
|
||||||
fs.seekg(0);
|
fs.seekg(0);
|
||||||
|
|||||||
Reference in new issue
Block a user