[FFmpeg-cvslog] ffserver: put gcc attribute under proper ifdef
Mans Rullgard
git
Wed Jan 26 04:01:15 CET 2011
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sat Oct 16 20:56:32 2010 +0100| [5658abf8c96f89fe79eac0eb6f0a87d3c649f091] | committer: Michael Niedermayer
ffserver: put gcc attribute under proper ifdef
(cherry picked from commit efa6ce9982ffde33b7303498ff28fcf39ff68b8d)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5658abf8c96f89fe79eac0eb6f0a87d3c649f091
---
ffserver.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ffserver.c b/ffserver.c
index 94a239c..9a32408 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);
More information about the ffmpeg-cvslog
mailing list