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>