OSDN Git Service

ffserver: put gcc attribute under proper ifdef
authorMans Rullgard <mans@mansr.com>
Sat, 16 Oct 2010 19:56:32 +0000 (20:56 +0100)
committerMans Rullgard <mans@mansr.com>
Mon, 24 Jan 2011 22:09:37 +0000 (22:09 +0000)
ffserver.c

index 94a239c..9a32408 100644 (file)
@@ -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);