[FFmpeg-devel] [PATCH] ffserver: put gcc attribute under proper ifdef

Mans Rullgard mans
Sun Jan 23 19:31:31 CET 2011


---
 ffserver.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ffserver.c b/ffserver.c
index 89e8e95..0ab3932 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);
-- 
1.7.3.5




More information about the ffmpeg-devel mailing list