Skip to content

Commit

Permalink
BUILD: Fix compilation with MinGW32
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 authored and DrMcCoy committed Jan 12, 2019
1 parent 49c9328 commit 8729a21
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,15 @@ AC_ARG_WITH([std], [AS_HELP_STRING([--without-std], [Compile without specifying

STD=""
if test "x$with_std" = "xyes"; then
AX_CHECK_COMPILER_FLAGS_VAR([C++], [STD], [-std=c++11])
case "$target" in
*mingw*)
dnl Needed by _wfopen in src/common/platform.cpp
AX_CHECK_COMPILER_FLAGS_VAR([C++], [STD], [-std=gnu++11])
;;
*)
AX_CHECK_COMPILER_FLAGS_VAR([C++], [STD], [-std=c++11])
;;
esac;
fi

AC_SUBST(STD)
Expand Down

0 comments on commit 8729a21

Please sign in to comment.