From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24789 invoked by alias); 7 Apr 2012 16:07:32 -0000 Received: (qmail 24771 invoked by uid 22791); 7 Apr 2012 16:07:30 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 07 Apr 2012 16:07:18 +0000 From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/52764] Including after fails to define limit macros Date: Sat, 07 Apr 2012 16:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-04/txt/msg00476.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52764 --- Comment #4 from joseph at codesourcery dot com 2012-04-07 16:06:46 UTC --- My previous suggestion stands of having the compiler predefine __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS, whether for C++11 or generally for C++, to make all existing stdint.h headers work as desired. You could predefine in the compiler, or you could predefine in stdint-wrap.h when it includes a system stdint.h and remove the conditionals in stdint-gcc.h. (In the header might be better because then you can use #ifndef to avoid any conflict with a user's definition of those macros.) If the libstdc++ people conclude that these definitions should be present for all C++ versions, not just C++11, then the conditionals in glibc's stdint.h can be removed at leisure (the predefines in GCC will make the conditionals useless but harmless).