This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52764] Including <cstdint> after <stdint.h> fails to define limit macros
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 06 Oct 2012 23:06:09 +0000
- Subject: [Bug c++/52764] Including <cstdint> after <stdint.h> fails to define limit macros
- Auto-submitted: auto-generated
- References: <bug-52764-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52764
--- Comment #8 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-10-06 23:06:09 UTC ---
Author: paolo
Date: Sat Oct 6 23:06:04 2012
New Revision: 192174
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192174
Log:
2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52764
* ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define
__STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS.
* ginclude/stdint-gcc.h: In C++11 unconditionally define
limit and constant macros.
/testsuite
2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52764
* g++.dg/cpp0x/stdint.C: New.
/libstdc++-v3
2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52764
* include/c_global/cstdint: Remove __STDC_LIMIT_MACROS and
__STDC_CONSTANT_MACROS related macros.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/stdint.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ginclude/stdint-gcc.h
trunk/gcc/ginclude/stdint-wrap.h
trunk/gcc/testsuite/ChangeLog
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/c_global/cstdint