Generate a linking error if perror() is used in libav*
authorLuca Abeni <lucabe72@email.it>
Mon, 19 Nov 2007 10:40:11 +0000 (10:40 +0000)
committerLuca Abeni <lucabe72@email.it>
Mon, 19 Nov 2007 10:40:11 +0000 (10:40 +0000)
Originally committed as revision 11061 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/internal.h

index 2ed5719..16f13c4 100644 (file)
@@ -257,6 +257,8 @@ if((y)<(x)){\
 #define printf please_use_av_log
 #undef  fprintf
 #define fprintf please_use_av_log
+#undef  perror
+#define perror please_use_av_log_instead_of_perror
 #endif
 
 #define CHECKED_ALLOCZ(p, size)\