util: add missing include and fix function signature

This commit is contained in:
Cory Fields 2023-03-02 20:30:17 +00:00
parent 74981aa02d
commit 8847ce44e0

View file

@ -3,6 +3,8 @@
// Distributed under the MIT software license, see the accompanying // Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/readwritefile.h>
#include <fs.h> #include <fs.h>
#include <algorithm> #include <algorithm>
@ -11,7 +13,7 @@
#include <string> #include <string>
#include <utility> #include <utility>
std::pair<bool,std::string> ReadBinaryFile(const fs::path &filename, size_t maxsize=std::numeric_limits<size_t>::max()) std::pair<bool,std::string> ReadBinaryFile(const fs::path &filename, size_t maxsize)
{ {
FILE *f = fsbridge::fopen(filename, "rb"); FILE *f = fsbridge::fopen(filename, "rb");
if (f == nullptr) if (f == nullptr)