From: Tobias Brunner Date: Thu, 12 Nov 2020 13:20:04 +0000 (+0100) Subject: windows: Don't declare [v]asprintf() X-Git-Tag: 5.9.2dr1~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eec08b41a83ed6c13dd33ef3a00d0c8002d96471;p=thirdparty%2Fstrongswan.git windows: Don't declare [v]asprintf() None of our build environments seem to require these declarations. And current versions of MinGW-w64 define them as inline functions in stdio.h so these declarations clashed with that ("static declaration of '...' follows non-static declaration"). --- diff --git a/src/libstrongswan/utils/compat/windows.h b/src/libstrongswan/utils/compat/windows.h index 7c6992300d..1061708fce 100644 --- a/src/libstrongswan/utils/compat/windows.h +++ b/src/libstrongswan/utils/compat/windows.h @@ -134,16 +134,6 @@ const char WINAPI *inet_ntop(int af, const void *src, char *dst, socklen_t size) int WINAPI inet_pton(int af, const char *src, void *dst); #endif -/** - * Provided by printf hook backend - */ -int asprintf(char **strp, const char *fmt, ...); - -/** - * Provided by printf hook backend - */ -int vasprintf(char **strp, const char *fmt, va_list ap); - /** * timeradd(3) from */