diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c
index 77bf414ccc8265e4eeb602aee0ad8edb5ac65884..12695585a69503275acac306b5141ec5355677bb 100644
--- a/src/sdl/i_video.c
+++ b/src/sdl/i_video.c
@@ -32,6 +32,7 @@
 #include "SDL.h"
 
 #ifdef _MSC_VER
+#include <windows.h>
 #pragma warning(default : 4214 4244)
 #endif