diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c
index 2ef745c8f9b7682e5d9ee2aa000bb58027817608..a4a01c62af196fbe12ad302fe8c026adbe9dc551 100644
--- a/source/blender/python/api2_2x/Image.c
+++ b/source/blender/python/api2_2x/Image.c
@@ -30,6 +30,10 @@
  * ***** END GPL/BL DUAL LICENSE BLOCK *****
 */
 
+#ifdef WIN32
+#include "BLI_winstuff.h"
+#endif /* WIN32*/
+
 #include <BKE_main.h>
 #include <BKE_global.h>
 #include <BKE_library.h>