From efa6ce9982ffde33b7303498ff28fcf39ff68b8d Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sat, 16 Oct 2010 20:56:32 +0100 Subject: [PATCH] ffserver: put gcc attribute under proper ifdef --- ffserver.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ffserver.c b/ffserver.c index 94a239ca5d..9a3240808b 100644 --- a/ffserver.c +++ b/ffserver.c @@ -384,7 +384,10 @@ static void http_vlog(const char *fmt, va_list vargs) } } -static void __attribute__ ((format (printf, 1, 2))) http_log(const char *fmt, ...) +#ifdef __GNUC__ +__attribute__ ((format (printf, 1, 2))) +#endif +static void http_log(const char *fmt, ...) { va_list vargs; va_start(vargs, fmt);