diff options
Diffstat (limited to 'gcc/ginclude/stdint-wrap.h')
-rw-r--r-- | gcc/ginclude/stdint-wrap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ginclude/stdint-wrap.h b/gcc/ginclude/stdint-wrap.h index e45f8198b97..83b6f70c837 100644 --- a/gcc/ginclude/stdint-wrap.h +++ b/gcc/ginclude/stdint-wrap.h @@ -1,5 +1,11 @@ #ifndef _GCC_WRAP_STDINT_H #if __STDC_HOSTED__ +# 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> #else # include "stdint-gcc.h" |