mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-15 09:17:57 +00:00
Compare commits
2 Commits
e3699070a4
...
d67efb2cab
Author | SHA1 | Date | |
---|---|---|---|
|
d67efb2cab | ||
|
0e09ecbaa5 |
@ -130,7 +130,7 @@ SPDLOG_INLINE void prevent_child_fd(FILE *f)
|
||||
{
|
||||
|
||||
#ifdef _WIN32
|
||||
#if !defined(__cplusplus_winrt)
|
||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user