From 572f992eff59313bd098a98e919183f3123b1fe1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 29 Aug 2003 20:33:57 +0000 Subject: [PATCH] libavformat/avio.h compilation problem in VisualC++ by (lethean at realtime dot ssu dot ac dot kr) Originally committed as revision 2182 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avio.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/avio.h b/libavformat/avio.h index b31689ab25..cc0b5f9b05 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -109,7 +109,11 @@ int url_feof(ByteIOContext *s); #define URL_EOF (-1) int url_fgetc(ByteIOContext *s); +#ifdef __GNUC__ int url_fprintf(ByteIOContext *s, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); +#else +int url_fprintf(ByteIOContext *s, const char *fmt, ...); +#endif char *url_fgets(ByteIOContext *s, char *buf, int buf_size); void put_flush_packet(ByteIOContext *s);