These two libraries have broken _msize() function.
---
 mingw-w64-crt/testcases/t_aligned_alloc.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/mingw-w64-crt/testcases/t_aligned_alloc.c 
b/mingw-w64-crt/testcases/t_aligned_alloc.c
index 875d563611d9..f9f1ebf1de11 100644
--- a/mingw-w64-crt/testcases/t_aligned_alloc.c
+++ b/mingw-w64-crt/testcases/t_aligned_alloc.c
@@ -48,6 +48,11 @@ int main() {
    * So it means that also mingw-w64 _aligned_msize function (wrapper around 
_msize)
    * returns wrong value when using those two CRT libraries.
    */
+#if __MSVCRT_VERSION__ >= 0x100 && __MSVCRT_VERSION__ <= 0x200
+  return 0;
+#endif
+
+
   ptr = malloc(231);
   assert(ptr != NULL);
   size = _msize(ptr);
-- 
2.20.1



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to