updated build system
This commit is contained in:
parent
2e46f2fead
commit
2a3c6f3522
8
support/3rd_party/src/utils/file.cpp
vendored
8
support/3rd_party/src/utils/file.cpp
vendored
@ -89,7 +89,7 @@ auto file::move_to(std::filesystem::path new_path) -> bool {
|
||||
|
||||
auto file::read(unsigned char *data, std::size_t to_read, std::uint64_t offset,
|
||||
std::size_t *total_read) -> bool {
|
||||
static static constexpr const std::string_view function_name{
|
||||
static constexpr const std::string_view function_name{
|
||||
static_cast<const char *>(__FUNCTION__),
|
||||
};
|
||||
|
||||
@ -148,7 +148,7 @@ auto file::truncate(std::size_t size) -> bool {
|
||||
auto file::write(const typename data_buffer::value_type *data,
|
||||
std::size_t to_write, std::size_t offset,
|
||||
std::size_t *total_written) -> bool {
|
||||
static static constexpr const std::string_view function_name{
|
||||
static constexpr const std::string_view function_name{
|
||||
static_cast<const char *>(__FUNCTION__),
|
||||
};
|
||||
|
||||
@ -249,7 +249,7 @@ auto read_json_file(std::string_view path, nlohmann::json &data,
|
||||
#else // !defined(PROJECT_ENABLE_LIBSODIUM)
|
||||
auto read_json_file(std::string_view path, nlohmann::json &data) -> bool {
|
||||
#endif // defined(PROJECT_ENABLE_LIBSODIUM)
|
||||
static static constexpr const std::string_view function_name{
|
||||
static constexpr const std::string_view function_name{
|
||||
static_cast<const char *>(__FUNCTION__),
|
||||
};
|
||||
|
||||
@ -305,7 +305,7 @@ auto write_json_file(std::string_view path, const nlohmann::json &data,
|
||||
auto write_json_file(std::string_view path,
|
||||
const nlohmann::json &data) -> bool {
|
||||
#endif // defined(PROJECT_ENABLE_LIBSODIUM)
|
||||
static static constexpr const std::string_view function_name{
|
||||
static constexpr const std::string_view function_name{
|
||||
static_cast<const char *>(__FUNCTION__),
|
||||
};
|
||||
|
||||
|
2
support/3rd_party/src/utils/unix.cpp
vendored
2
support/3rd_party/src/utils/unix.cpp
vendored
@ -56,7 +56,7 @@ auto is_uid_member_of_group(const uid_t &uid, const gid_t &gid) -> bool {
|
||||
}
|
||||
|
||||
auto use_getpwuid(uid_t uid, passwd_callback_t callback) -> result {
|
||||
static static constexpr const std::string_view function_name{
|
||||
static constexpr const std::string_view function_name{
|
||||
static_cast<const char *>(__FUNCTION__),
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user