build: Fix ::_wsystem check

See https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/system-wsystem
This commit is contained in:
Hennadii Stepanov 2022-06-20 14:04:37 +02:00
parent a09033e22c
commit b5f6a46503
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -1261,8 +1261,8 @@ AC_LINK_IFELSE(
AC_MSG_CHECKING([for ::_wsystem])
AC_LINK_IFELSE(
[ AC_LANG_PROGRAM(
[[ ]],
[[ int nErr = ::_wsystem(""); ]]
[[ #include <stdlib.h> ]],
[[ int nErr = ::_wsystem(NULL); ]]
)],
[ AC_MSG_RESULT([yes]); have_any_system=yes],
[ AC_MSG_RESULT([no]) ]