Hello,

I don't know why it was required but it breaks some cases of using GCC
together with Clang as reported here:
https://github.com/Alexpux/MINGW-packages/issues/1678

In case attachment didn't work:

>From f59cbc266025bc070e05a0d7ad44853b1771c21a Mon Sep 17 00:00:00 2001
From: Mateusz Mikula <mati...@gmail.com>
Date: Mon, 30 Jan 2017 18:09:09 +0100
Subject: [PATCH] stdio.h: Ignore extern "C++" for Clang

---
 mingw-w64-headers/crt/stdio.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h
index c37ae15f..9c064246 100644
--- a/mingw-w64-headers/crt/stdio.h
+++ b/mingw-w64-headers/crt/stdio.h
@@ -218,7 +218,7 @@ int vasprintf(char **__ret, const char *__format,
__builtin_va_list __local_argv

 /* There seems to be a bug about builtins and static overrides of them
    in g++.  So we need to do here some trickery.  */
-#ifdef __cplusplus
+#ifdef __cplusplus && !defined(__clang__)
 extern "C++" {
 #endif

@@ -367,7 +367,7 @@ int vsnprintf (char *__stream, size_t __n, const
char *__format, __builtin_va_li

 /* #endif */ /* __NO_ISOCEXT */

-#ifdef __cplusplus
+#ifdef __cplusplus && !defined(__clang__)
 }
 #endif

-- 
2.11.0


Regards,

Mateusz
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to