The macros forbidding the system functions no longer exist, obviating
the need for the #undefs.
---
 compat/getopt.c        |    2 --
 libavcodec/dct-test.c  |    2 --
 libavcodec/dvbsubdec.c |    2 --
 libavcodec/dvdsubdec.c |    3 ---
 4 files changed, 9 deletions(-)

diff --git a/compat/getopt.c b/compat/getopt.c
index 3e7d3e2..7c646f6 100644
--- a/compat/getopt.c
+++ b/compat/getopt.c
@@ -38,8 +38,6 @@ static int optind = 1;
 static int optopt;
 static char *optarg;
 
-#undef fprintf
-
 static int getopt(int argc, char *argv[], char *opts)
 {
     static int sp = 1;
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index 0fb67d2..8ea123b 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -52,8 +52,6 @@
 #include "x86/idct_xvid.h"
 #include "dctref.h"
 
-#undef printf
-
 struct algo {
     const char *name;
     void (*func)(int16_t *block);
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index b612e65..c2bb1cf 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -1047,8 +1047,6 @@ static void dvbsub_parse_page_segment(AVCodecContext 
*avctx,
 
 
 #ifdef DEBUG_SAVE_IMAGES
-#undef fprintf
-#undef perror
 static void png_save2(const char *filename, uint32_t *bitmap, int w, int h)
 {
     int x, y, v;
diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
index c5e864d..6b168cb 100644
--- a/libavcodec/dvdsubdec.c
+++ b/libavcodec/dvdsubdec.c
@@ -439,9 +439,6 @@ static int find_smallest_bounding_rectangle(AVSubtitle *s)
 }
 
 #ifdef DEBUG
-#undef fprintf
-#undef perror
-#undef exit
 static void ppm_save(const char *filename, uint8_t *bitmap, int w, int h,
                      uint32_t *rgba_palette)
 {
-- 
1.7.9.5

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to