From eec08b41a83ed6c13dd33ef3a00d0c8002d96471 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 12 Nov 2020 14:20:04 +0100 Subject: [PATCH] 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"). --- src/libstrongswan/utils/compat/windows.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/libstrongswan/utils/compat/windows.h b/src/libstrongswan/utils/compat/windows.h index 7c6992300..1061708fc 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 */