From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8530 invoked by alias); 15 Sep 2008 17:36:17 -0000 Received: (qmail 8318 invoked by uid 48); 15 Sep 2008 17:34:58 -0000 Date: Mon, 15 Sep 2008 17:36:00 -0000 Message-ID: <20080915173458.8317.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/37522] [4.4 regression] Incorrect vswprintf prototype breaks __to_xstring In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paolo dot carlini at oracle dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-09/txt/msg01785.txt.bz2 ------- Comment #3 from paolo dot carlini at oracle dot com 2008-09-15 17:34 ------- Well, in principle the automatic configure-time check could define a _GLIBCXX_HAVE_CONFORMING_VSWPRINTF, checking the parameters too, and then os_defines.h could define a _GLIBCXX_HAVE_REPLACEMENT_VSWPRINTF. Then, include/*/cwchar could guard the import with something like: #if defined(_GLIBCXX_HAVE_CONFORMING_VSWPRINTF) || !defined(_GLIBCXX_HAVE_REPLACEMENT_VSWPRINTF) ... import #endif Anyway, if you can do and test somehow the mingw specific bits in os_defines.h, I can do the rest. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37522