diff --git a/include/vlc_common.h b/include/vlc_common.h
index a752692375869d92bad9405fec0db85fb44322d6..791762fabdbb36d72226c6502394e5b3b829e53d 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -76,6 +76,8 @@
  #define PRIo64 "llo"
  #undef PRIx64
  #define PRIx64 "llx"
+ #define snprintf __mingw_snprintf
+ #define vsnprintf __mingw_vsnprintf
 #endif
 
 /* Function attributes for compiler warnings */