--- include/share/alloc.h.orig	2008-05-27 01:56:44.000000000 +0200
+++ include/share/alloc.h	2008-05-27 01:57:04.000000000 +0200
@@ -35,7 +35,7 @@
 
 #ifndef SIZE_MAX
 # ifndef SIZE_T_MAX
-#  ifdef _MSC_VER
+#  if defined _MSC_VER || defined __MINGW32__
 #   define SIZE_T_MAX UINT_MAX
 #  else
 #   error
