Commit d385b8dc authored by basos G's avatar basos G Committed by Jean-Baptiste Kempf

FIX mingw runtime 3.15 is the minimun

An issue regrading %zu vasprintf NOT being recognized
by mingw runtime's 3.14 is fixed with an upgrade to 3.15
So make this the least required standart.
Note that this issue lead to a vlc early crash on windows
and is generally toxic on cases where %s is following a
misinterpreted %zu
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent bc756e06
......@@ -475,14 +475,14 @@ AS_IF([test "${SYS}" = "mingw32"], [
AC_MSG_CHECKING(for broken mingw-runtime)
AC_PREPROC_IFELSE([
#include <_mingw.h>
#if (__MINGW32_MAJOR_VERSION == 3) && (__MINGW32_MINOR_VERSION < 14)
#if (__MINGW32_MAJOR_VERSION == 3) && (__MINGW32_MINOR_VERSION < 15)
# error Attempting to use mingw-runtime with broken vsnprintf support
#endif
], [
AC_MSG_RESULT([ok])
], [
AC_MSG_RESULT([present])
AC_MSG_ERROR([LibVLC requires mingw-runtime version 3.14 or higher!])
AC_MSG_ERROR([LibVLC requires mingw-runtime version 3.15 or higher!])
])
dnl force use of mingw provided c99 *printf over msvcrt
CPPFLAGS="${CPPFLAGS} -D__USE_MINGW_ANSI_STDIO=1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment