diff --git a/vhook/fish.c b/vhook/fish.c
index 0e79eacc3b54d9b7f805b0f6782c2a1e9b872a4c..bd05b987b4add81128a75eb224b0dcf83d607fc4 100644
--- a/vhook/fish.c
+++ b/vhook/fish.c
@@ -48,6 +48,7 @@
 #include "libavformat/framehook.h"
 #include "libavcodec/dsputil.h"
 #include "libswscale/swscale.h"
+#undef fprintf
 
 static int sws_flags = SWS_BICUBIC;
 
diff --git a/vhook/ppm.c b/vhook/ppm.c
index d9986c81fb72e6380ebf43fb0532940987eb44dc..0e37ac412ea4ba7999f57210c56fce09cc5397d0 100644
--- a/vhook/ppm.c
+++ b/vhook/ppm.c
@@ -29,6 +29,7 @@
 #include "libavformat/framehook.h"
 #include "libavformat/avformat.h"
 #include "libswscale/swscale.h"
+#undef fprintf
 
 static int sws_flags = SWS_BICUBIC;