This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52764] Including <cstdint> after <stdint.h> fails to define limit macros


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]