diff --git a/libavutil/md5.c b/libavutil/md5.c
index 1f100de35adf71154332e392c0f138326c0b6a2c..ed19693ce2713978a2fac783091c9269c032198e 100644
--- a/libavutil/md5.c
+++ b/libavutil/md5.c
@@ -162,6 +162,7 @@ void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len){
 
 #ifdef TEST
 #include <stdio.h>
+#undef printf
 main(){
     uint64_t md5val;
     int i;