Fixed throw macros and includes

This commit is contained in:
gabime
2019-08-19 12:13:37 +03:00
parent 87ec1ab97b
commit 23807e12e8
5 changed files with 6 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ SPDLOG_INLINE void prevent_child_fd(FILE *f)
#if !defined(__cplusplus_winrt)
auto file_handle = reinterpret_cast<HANDLE>(_get_osfhandle(_fileno(f)));
if (!::SetHandleInformation(file_handle, HANDLE_FLAG_INHERIT, 0))
SPDLOG_THROW spdlog_ex("SetHandleInformation failed", errno);
SPDLOG_THROW(spdlog_ex("SetHandleInformation failed", errno));
#endif
#else
auto fd = fileno(f);