Browse Source

Generate a linking error if perror() is used in libav*

Originally committed as revision 11061 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Luca Abeni 18 years ago
parent
commit
c5a2fe8f1f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavutil/internal.h

+ 2
- 0
libavutil/internal.h View File

@@ -257,6 +257,8 @@ if((y)<(x)){\
#define printf please_use_av_log #define printf please_use_av_log
#undef fprintf #undef fprintf
#define fprintf please_use_av_log #define fprintf please_use_av_log
#undef perror
#define perror please_use_av_log_instead_of_perror
#endif #endif


#define CHECKED_ALLOCZ(p, size)\ #define CHECKED_ALLOCZ(p, size)\


Loading…
Cancel
Save