diff --git a/libswscale/swscale-example.c b/libswscale/swscale-example.c
index 58473e3145..328d98d8d0 100644
--- a/libswscale/swscale-example.c
+++ b/libswscale/swscale-example.c
@@ -30,13 +30,6 @@
 #include "swscale.h"
 #include "swscale_internal.h"
 
-#undef fprintf
-#undef free
-#undef malloc
-#undef perror
-#undef printf
-#undef random
-
 static uint64_t getSSD(uint8_t *src1, uint8_t *src2, int stride1, int stride2, int w, int h){
     int x,y;
     uint64_t ssd=0;