This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/65806] New: NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 19 Apr 2015 15:40:34 +0000
- Subject: [Bug libstdc++/65806] New: NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65806
Bug ID: 65806
Summary: NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and
__STDC_CONSTANT_MACROS
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Host: *-*-netbsd5.1
Target: *-*-netbsd5.1
Build: *-*-netbsd5.1
Contrary to the requirements of the C++ standard, <stdint.h> on NetBSD 5.1 only
defines its helper macros conditionally:
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
#include <machine/int_limits.h>
#endif
#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
#include <machine/int_const.h>
#endif
This causes lots of test failures like:
/home/jwakely/src/gcc/libstdc++-v3/include/ext/random.tcc:69:52: error:
'UINT32_C' was not declared in this scope
Maybe we should make <bits/c++config.h> define those macros for targets that
incorrectly think they are required.