This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/65806] 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: Mon, 22 Jun 2015 10:17:00 +0000
- Subject: [Bug libstdc++/65806] NetBSD's <stdint.h> expects __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS
- Auto-submitted: auto-generated
- References: <bug-65806-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65806
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Hmm, why doesn't GCC's own stdint.h solve this? It does:
# if defined __cplusplus && __cplusplus >= 201103L
# undef __STDC_LIMIT_MACROS
# define __STDC_LIMIT_MACROS
# undef __STDC_CONSTANT_MACROS
# define __STDC_CONSTANT_MACROS
# endif
# include_next <stdint.h>