[mpg123-devel] [PATCH] configure: don't error on GetThreadErrorMode if we're not going to use it
Brought to you by:
sobukus
From: <mp...@yc...> - 2020-06-02 07:58:19
|
From: Steve Lhomme <robux4@ycbcr.xyz> In UWP builds GetThreadErrorMode is not supported (at least not on all Win8/Win10). But it's still possible to build mpg123 without module handling. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 917d251..c494221 100644 --- a/configure.ac +++ b/configure.ac @@ -2435,6 +2435,7 @@ if test x$win32_specific_codes = xenabled; then AC_MSG_RESULT([no]) fi # Check GetThreadErrorMode + if test x"$modules" != xdisabled; then AC_MSG_CHECKING([if we have GetThreadErrorMode]) AC_LINK_IFELSE([AC_LANG_SOURCE([ #include <windows.h> @@ -2457,6 +2458,7 @@ if test x$win32_specific_codes = xenabled; then AC_MSG_RESULT([no]) AC_ERROR([GetThreadErrorMode is required but not found]) fi + fi fi #### WINVER Bump -- 2.26.2 |