X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/b6d8272551435098c716c546a5201206517e5da9..101604fb661df3209a20d07b6b9070d8d3fbffac:/test-vasprintf.c diff --git a/test-vasprintf.c b/test-vasprintf.c index bdb4408e..1e762697 100644 --- a/test-vasprintf.c +++ b/test-vasprintf.c @@ -1,4 +1,4 @@ -/* $Id: test-vasprintf.c,v 1.3 2015/10/06 18:32:20 schwarze Exp $ */ +/* $Id: test-vasprintf.c,v 1.5 2018/08/15 02:15:52 schwarze Exp $ */ /* * Copyright (c) 2015 Ingo Schwarze * @@ -15,15 +15,14 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#if defined(__linux__) || defined(__MINT__) -#define _GNU_SOURCE /* vasprintf() */ -#endif - #include #include #include -int +static int testfunc(char **, const char *, ...); + + +static int testfunc(char **ret, const char *format, ...) { va_list ap;