]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
windows: Don't declare [v]asprintf()
authorTobias Brunner <tobias@strongswan.org>
Thu, 12 Nov 2020 13:20:04 +0000 (14:20 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 13 Nov 2020 15:38:17 +0000 (16:38 +0100)
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

index 7c6992300dc9e1dd81227f5c959c1ef8454624bb..1061708fcefd51aa494629784c961d3c995ffa6c 100644 (file)
@@ -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 <sys/time.h>
  */