--- util.c.	2014-02-03 19:09:34 -0500
+++ util.c.patched	2014-02-03 19:27:59 -0500
@@ -1113,7 +1113,7 @@
 /*************************************************************************/
 #define __MYTOLOWER(c) ( ((c) >= 'A') && ((c) <= 'Z') ? ((c) - 'A' + 'a') : (c) )
 
-#if ( defined(COMPILE_ADD_NON_ANSI_FUNCTIONS) || defined(__STDC__) && __STDC__ == 1 )
+#if ( defined(COMPILE_ADD_NON_ANSI_FUNCTIONS) || defined(__STDC__) && __STDC__ == 1  && !defined(__MINGW64__) )
 /* support (VC++ Language extensions) = OFF && defined(COMPILE_ANSI_ONLY) */
 int memicmp ( const void * p1, const void * p2, size_t length )
 {
--- ichicomp.h	2014-02-03 19:13:08 -0500
+++ ichicomp.h.patched	2014-02-03 19:29:33 -0500
@@ -71,7 +71,7 @@
  /* implementation is located in util.c */
 /*#if ( !defined(_MSC_VER) || defined(__STDC__) && __STDC__ == 1 )*/
 
-#if ( defined(COMPILE_ADD_NON_ANSI_FUNCTIONS) || defined(__STDC__) && __STDC__ == 1 )
+#if ( defined(COMPILE_ADD_NON_ANSI_FUNCTIONS) || defined(__STDC__) && __STDC__ == 1 && !defined(__MINGW64__))
 
 /* support (VC++ Language extensions) = OFF && defined(COMPILE_ANSI_ONLY) */
 int   memicmp (const void*, const void*, size_t);
