Browse Source

ffserver: put gcc attribute under proper ifdef
(cherry picked from commit efa6ce9982ffde33b7303498ff28fcf39ff68b8d)

Mans Rullgard 14 years ago
parent
commit
5658abf8c9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      ffserver.c

+ 4 - 1
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_list vargs;
     va_start(vargs, fmt);
     va_start(vargs, fmt);