| 1394 | } |
| 1395 | |
| 1396 | void cmSystemTools::InitializeLibUV() |
| 1397 | { |
| 1398 | #if defined(_WIN32) |
| 1399 | // Perform libuv one-time initialization now, and then un-do its |
| 1400 | // global _fmode setting so that using libuv does not change the |
| 1401 | // default file text/binary mode. See libuv issue 840. |
| 1402 | if (uv_loop_t* loop = uv_default_loop()) { |
| 1403 | uv_loop_close(loop); |
| 1404 | } |
| 1405 | # ifdef _MSC_VER |
| 1406 | _set_fmode(_O_TEXT); |
| 1407 | # else |
| 1408 | _fmode = _O_TEXT; |
| 1409 | # endif |
| 1410 | // Replace libuv's report handler with our own to suppress popups. |
| 1411 | cmSystemTools::EnableMSVCDebugHook(); |
| 1412 | #endif |
| 1413 | } |
| 1414 | |
| 1415 | #if defined(_WIN32) |
| 1416 | # include <random> |
nothing calls this directly
no test coverage detected