From e48020d08c8602520a9f8f84feb697de1baab631 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Sat, 1 Mar 2025 07:03:56 -0800 Subject: [PATCH] Remove bitrotted inline prototype for a libc function Inserting a prototype with arbitrary interface for a missing libc function will have unintended side effects, which is what happens when you build this on NetBSD for instance. --- bstrlib.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bstrlib.c b/bstrlib.c index 82fbc05..7e7e3ab 100644 --- a/bstrlib.c +++ b/bstrlib.c @@ -2913,12 +2913,6 @@ struct genBstrList g; #define START_VSNBUFF (256) #else -#if defined(__GNUC__) && !defined(__APPLE__) -/* Something is making gcc complain about this prototype not being here, so - I've just gone ahead and put it in. */ -extern int vsnprintf (char *buf, size_t count, const char *format, va_list arg); -#endif - #define exvsnprintf(r,b,n,f,a) {r = vsnprintf (b,n,f,a);} #endif #endif