changeset 6810:92633c7288cd

build: Switch default C runtime for Windows from MSVCRT to UCRT.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 01 Aug 2023 18:03:05 +0200
parents 968a8e4a34e2
children c04e1789dc7a
files configure.ac
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Tue Aug 01 18:00:48 2023 +0200
+++ b/configure.ac	Tue Aug 01 18:03:05 2023 +0200
@@ -101,12 +101,12 @@
 
 # Use "msvcrt" or "ucrt" on Windows
 AC_ARG_WITH([windows-msvcrt],
-  [AS_HELP_STRING([--with-windows-msvcrt=msvcrt], [select C runtime for windows distribution (default: msvcrt)])],
+  [AS_HELP_STRING([--with-windows-msvcrt=msvcrt], [select C runtime for windows distribution (default: ucrt)])],
   [case $withval in
      no) AC_MSG_ERROR([A runtime for Windows is required for --with-windows-msvcrt]) ;;
-     yes | "") HOST_MSVCRT=msvcrt ;;
+     yes | "") HOST_MSVCRT=ucrt ;;
      *) HOST_MSVCRT="$withval" ;;
-   esac], [HOST_MSVCRT=msvcrt])
+   esac], [HOST_MSVCRT=ucrt])
 AC_SUBST(HOST_MSVCRT)
 
 # try find pkg-config build paths