add prototype definitions of asprintf and vasprintf for CYGWIN build

- define _GNU_SOURCE in case of cygwin

As compilation warning report by @Dravion
This commit is contained in:
kinichiro 2017-07-16 23:39:42 +09:00
parent cefd44a86e
commit 5afc4e3cd8

View File

@ -13,6 +13,7 @@ case $host_os in
;;
*cygwin*)
HOST_OS=cygwin
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
;;
*darwin*)
HOST_OS=darwin