This patch worked for me Thanks Claudio Bley.

To Eli Zaretskii, are you going to do anything about this? Or let MinGW to fix
it?





On Mon, Dec 30, 2013 at 7:58 PM, York Zhao <gtdplatform@gmail.com> wrote:
Hi Eli Zaretskii,

Thanks a lot for the link, I'll take a look. Have no idea why I missed it.


On Mon, Dec 30, 2013 at 3:39 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Mon, 30 Dec 2013 15:19:39 -0500
> From: York Zhao <gtdplatform@gmail.com>
>
> Here's the errors I got from "make":
>
> In file included from d:/emacs.source/src/xml.c:19:0:
> ./config.h:1761:19: error: two or more data types in declaration specifiers
>  #define mbstate_t int
>                    ^
> In file included from d:/usr/gtk/include/iconv.h:106:0,
>                  from d:/usr/gtk/include/libxml2/libxml/encoding.h:28,
>                  from d:/usr/gtk/include/libxml2/libxml/parser.h:807,
>                  from d:/usr/gtk/include/libxml2/libxml/globals.h:18,
>                  from d:/usr/gtk/include/libxml2/libxml/threads.h:35,
>                  from d:/usr/gtk/include/libxml2/libxml/xmlmemory.h:218,
>                  from d:/usr/gtk/include/libxml2/libxml/tree.h:1248,
>                  from d:/emacs.source/src/xml.c:23:
> d:\usr\include\wchar.h:816:32: error: conflicting types for '_wstat64i32'
>  __CRT_MAYBE_INLINE int __cdecl _wstat64i32(const wchar_t *fname, struct
> _stat64i32 *_stat)

See the discussion starting here:

  http://lists.gnu.org/archive/html/emacs-devel/2013-11/msg00649.html