소스 검색

Fixed build problem on Raspberry PI.

yhirose 10 년 전
부모
커밋
5b0c90d3b3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      httplib.h

+ 2 - 2
httplib.h

@@ -297,11 +297,11 @@ inline bool is_dir(const std::string& s)
 
 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);
     auto size = fs.tellg();
     fs.seekg(0);
-   out.resize(size);
+    out.resize(size);
     fs.read(&out[0], size);
 }