set various glibc flags that also are useful with mingw
for example, asprintf/vasprintf are unmasked with _GNU_SOURCE in mingw
This commit is contained in:
parent
eb26e56ba8
commit
8b695e534b
@ -27,6 +27,7 @@ case $host_os in
|
|||||||
;;
|
;;
|
||||||
*mingw*)
|
*mingw*)
|
||||||
HOST_OS=win32
|
HOST_OS=win32
|
||||||
|
CFLAGS="$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE"
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
@ -57,7 +58,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
|
|||||||
)
|
)
|
||||||
CFLAGS="$save_cflags $AM_CFLAGS"
|
CFLAGS="$save_cflags $AM_CFLAGS"
|
||||||
|
|
||||||
AC_CHECK_FUNC(strlcpy,
|
AC_CHECK_FUNC(strlcpy,
|
||||||
AM_CONDITIONAL(NO_STRLCPY, false),
|
AM_CONDITIONAL(NO_STRLCPY, false),
|
||||||
AC_DEFINE(NO_STRLCPY)
|
AC_DEFINE(NO_STRLCPY)
|
||||||
AM_CONDITIONAL(NO_STRLCPY, true))
|
AM_CONDITIONAL(NO_STRLCPY, true))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user