mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
windows: remove deprecated codecvt via UTF-8 narrow APIs
Drop wstring_convert/codecvt and the related wide process calls (_wsystem, _wexecvp, CreateProcessW) in favor of ::system, _execvp, and CreateProcess.
This commit is contained in:
@@ -24,8 +24,7 @@ endif()
|
||||
# Even though ::system is part of the standard library, we still check
|
||||
# for it, to support building targets that don't have it, such as iOS.
|
||||
check_cxx_symbol_exists(std::system "cstdlib" HAVE_STD_SYSTEM)
|
||||
check_cxx_symbol_exists(::_wsystem "stdlib.h" HAVE__WSYSTEM)
|
||||
if(HAVE_STD_SYSTEM OR HAVE__WSYSTEM)
|
||||
if(HAVE_STD_SYSTEM)
|
||||
set(HAVE_SYSTEM 1)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user