From 61408a0f297b7748617dcfb9ae3915c1e2480c5a Mon Sep 17 00:00:00 2001 From: Denis Blank Date: Mon, 23 Mar 2020 22:16:25 +0100 Subject: [PATCH] Fix a build issue when SPDLOG_PREVENT_CHILD_FD is defined * Ref 033fe9f133092dd8d --- include/spdlog/details/os-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/os-inl.h b/include/spdlog/details/os-inl.h index 1126da4f..0551be16 100644 --- a/include/spdlog/details/os-inl.h +++ b/include/spdlog/details/os-inl.h @@ -134,7 +134,7 @@ SPDLOG_INLINE bool fopen_s(FILE **fp, const filename_t &filename, const filename auto file_handle = reinterpret_cast(_get_osfhandle(::_fileno(*fp))); if (!::SetHandleInformation(file_handle, HANDLE_FLAG_INHERIT, 0)) { - :fclose(*fp); + ::fclose(*fp); *fp = nullptr; } }