Changeset View
Changeset View
Standalone View
Standalone View
src/fs.cpp
// Copyright (c) 2017 The Bitcoin Core developers | // Copyright (c) 2017 The Bitcoin Core developers | ||||
// Copyright (c) 2019 The Bitcoin developers | // Copyright (c) 2019 The Bitcoin developers | ||||
// 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 <fs.h> | #include <fs.h> | ||||
namespace fsbridge { | namespace fsbridge { | ||||
FILE *fopen(const fs::path &p, const char *mode) { | FILE *fopen(const fs::path &p, const char *mode) { | ||||
return ::fopen(p.string().c_str(), mode); | return ::fopen(p.string().c_str(), mode); | ||||
} | } | ||||
} // namespace fsbridge | } // namespace fsbridge |