Browse Source

Avoid ms_struct on Cygwin and MingW

pull/1025/head
Max Lv 8 years ago
parent
commit
6ecbf8e6b9
2 changed files with 8 additions and 0 deletions
  1. 4
      configure
  2. 4
      configure.ac

4
configure

@ -13526,8 +13526,12 @@ fi
case $host in
*-mingw*)
CFLAGS="$CFLAGS -mno-ms-bitfields"
LIBS="$LIBS -ladvapi32 -lgdi32 -lws2_32 -lcrypt32"
;;
*-cygwin*)
CFLAGS="$CFLAGS -mno-ms-bitfields"
;;
*)
;;
esac

4
configure.ac

@ -84,8 +84,12 @@ AM_COND_IF([USE_SYSTEM_SHARED_LIB],
dnl Add library for mingw
case $host in
*-mingw*)
CFLAGS="$CFLAGS -mno-ms-bitfields"
LIBS="$LIBS -ladvapi32 -lgdi32 -lws2_32 -lcrypt32"
;;
*-cygwin*)
CFLAGS="$CFLAGS -mno-ms-bitfields"
;;
*)
;;
esac

Loading…
Cancel
Save