Fix C++ issue about type-checking.  const and none-const variants were treated
incompatible, which is of course not true here.



git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@6590 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h
index ae3c540..c3837b4 100644
--- a/mingw-w64-headers/crt/math.h
+++ b/mingw-w64-headers/crt/math.h
@@ -84,7 +84,7 @@
 };
 }
 
-#define __mingw_types_compatible_p(type1, type2) __mingw_types_compatible_p <type1, type2>::result
+#define __mingw_types_compatible_p(type1, type2) (__mingw_types_compatible_p <type1, type2>::result || __mingw_types_compatible_p <type1, const type2>::result)
 #else
 #define __mingw_types_compatible_p(type1, type2) __builtin_types_compatible_p (type1, type2)
 #endif